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 Tech Support » CExtPropertyCategory question Collapse All
Subject Author Date
Offer Har Nov 14, 2006 - 6:32 PM

Hi,

Is there a way to add a text on the cell to the right of the category name?
This cell is always empty, and i would like to add some summary of the category’s content if the category is collapsed.

Thanks.

Technical Support Nov 16, 2006 - 10:37 AM

Each row representing the property category row contains only one grid cell which joins two columns. So this it not possible the way you described. But you could you use the property category name itself to display additional data.

Offer Har Nov 16, 2006 - 10:39 AM

Good Idea - i mean to change the text of the category I presume.

How can i know when the category is collapsed or open?
I want to change the content according to this category’s status

Thanks.

Technical Support Nov 16, 2006 - 1:33 PM

You should override the CExtPropertyGridCtrl::OnPgcCreateGrids() virtual method. Leave it the same as the original one but additionally create a CExtPropertyGridWndCategorized-derived tree grid window which implements the CExtTreeGridWnd::ItemExpand() virtual method. The CExtPropertyGridWnd::PropertyItemToTreeItem() and CExtPropertyGridWnd::PropertyItemFromTreeItem() methods will allow you to perform conversion between HTREEITEM handles and CExtPropertyItem * pointers.