LOGIN    REGISTER

homepage

Smart PropertyGrid.MFC

User property types

In most cases, a client application will only use the built-in property types supported by the framework. But in some cases you may need to display a lot of properties whose type is not understood by Smart PropertyGrid. The framework has been built with this idea in mind and it is really recommended to extend it in such a way.

Let's take an example: you are building an aeronautical or gps related application. You need to display a lot of "earth position" properties. In your own code, you already have a structure containing a latitude and a longitude. To be able to support this complex type in the PropertyGrid, you will need to do several things, one being to define a new property type and a factory class to create it. The new property value type will take care of transforming a latitude/longitude data into a string that can be displayed. Then it will be your choice to define how to edit it (this part is explained in property feels).

Here is the result:

New property value type