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.
Subject |
Author |
Date |
|
Roongrit Charoensupkul
|
Dec 12, 2007 - 10:00 AM
|
I tried to create a property category, CExtPropertyCategory object. But there is no any category in my property grid control. Here are my codes:
CExtPropertyGridComboBoxBar * pCombo = STATIC_DOWNCAST( CExtPropertyGridComboBoxBar, GetChildByRTC( RUNTIME_CLASS(CExtPropertyGridComboBoxBar) ) );
CExtPropertyStore* pPropertyStore = new CExtPropertyStore( pConfiguration->Name().c_str() );
CExtPropertyCategory* pCategory = new CExtPropertyCategory( L"test" ); pCategory->DescriptionSet( _T("test properties") ); VERIFY( pPropertyStore->ItemInsert( pCategory ) );
pCombo->PropertyStoreInsert(pPropertyStore); pCombo->SetCurSel(0);
I tried to insert CExtPropertyItem object, and the propery grid can show the items. Please tell me how to show a property category?
|
|
Technical Support
|
Dec 13, 2007 - 4:53 AM
|
We confirm the property categories without child property values are not displayed in the property grid control. This is by design and we think this is correct.
|
|
Roongrit Charoensupkul
|
Dec 12, 2007 - 10:14 AM
|
I found the reason. It seems that I have to add at least one item in the category, orelse the category will not show.
|
|