Professional UI Solutions
Site Map   /  Register
 
 

Forum

Please Log In to post a new message or reply to an existing one. If you are not registered, please register.

NOTE: Some forums may be read-only if you are not currently subscribed to our technical support services.

Forums » Prof-UIS General Discussion » Property Grid usage Collapse All
Subject Author Date
Pablo van der Meer Jan 30, 2006 - 2:03 AM

I viewed your featured article about Property Grid control and this works great for ’simple’ applications. But what if I have different objects with all different properties?
Let’s take for example the DrawCli example. If I want to add the propertygrid to this application what’s the best method to do this?
Do I really need to create a separate class for every variable I want to implement?

Thanks!

Technical Support Jan 30, 2006 - 5:59 AM

There are two sample applications related to the CExtPropertyGridCtrl window. The PropertyGrid sample uses its own property value classes. The CompoundProperties sample does not define any custom property value classes. There is no need in defining any classes in your application. You need only a CExtPropertyGridCtrl-derived class which implements the OnPgcInputComplete() virtual method to catch the end-of-editing event for any property value and OnPgcResetValue() virtual method to catch the invocation of the Reset command.

Pablo van der Meer Jan 30, 2006 - 8:28 AM

Ok, thanks I will give that a try.