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, selection event Collapse All
Subject Author Date
a a Jun 5, 2006 - 9:34 PM

Hi.

You told me last time to use CExtPropertyGridCtrl::RedrawFocusDependentChildren()
to catch selection events, but i noticed that this methods is called more than one time per selection.
Until now I ’ve been using a "selection change" trick so that the event is called just one time, by saving the last selected property as an attribute.

But as of now, if the user clicks 2 times on the same property, I would like the code to be executed 2 times.
Is there a way to execute some code just one time at each selection?

Technical Support Jun 6, 2006 - 11:28 AM

We provided you with a simplified solution. If you need the full control over tree grid windows inside the property grid control, then you should use a CExtPropertyGridCtrl-derived class which implements the CExtPropertyGridCtrl::OnPgcCreateGrids() virtual method. Your virtual method should be similar to the original one but it should create your tree grid windows derived from the CExtPropertyGridWndCategorized and CExtPropertyGridWndSorted classes. These tree grid windows will have full access to the grid events. You can override the CExtGridWnd::FocusSet() virtual method to catch the focus change and you can handle the mouse double click.