CXTPPropertyGridItemEnum drop down not appearing |
Post Reply |
Author | |
DLewanda
Newbie Joined: 10 September 2008 Status: Offline Points: 7 |
Post Options
Thanks(0)
Posted: 11 September 2008 at 10:45am |
I modified the standard CXTPPropertyGridItemEnum example to load constraints from an array of CStrings. While I can see all the constraints if I use the arrow keys, clicking on the drop-down button doesn't show the constraint list as expected. Here is my code sample
CXTPPropertyGridItem* pOperationItem = pPropertyCategoryItem->AddChildItem( new CXTPPropertyGridItemEnum( _T("Operation:"), selectedOperation, &selectedOperation ) ); for( int i = 0; i < OPERATION_MODE_COUNT; i++ ) { pOperationItem->GetConstraints()->AddConstraint( OPERATION_MODES , i ); } Notes: pPropertyCategoryItem is a CXTPPropertyGridItem* (actually a CXTPPropertyGridItemCategory) OPERATION_MODES is a CString[] OPERATION_MODE_COUNT = 5 Please let me know what I am missing. Thanks in advance! |
|
Oleg
Admin Group Joined: 21 May 2003 Location: United States Status: Offline Points: 11234 |
Post Options
Thanks(0)
|
guess you need
pOperationItem->GetConstraints()->AddConstraint( OPERATION_MODES[ i ] , i );
|
|
Oleg, Support Team
CODEJOCK SOFTWARE SOLUTIONS |
|
DLewanda
Newbie Joined: 10 September 2008 Status: Offline Points: 7 |
Post Options
Thanks(0)
|
Sorry, it looks like the posting mechanism ate my [i]. I am doing what you suggested. I can see the items individually if I use the arrow keys, but I can't see the drop-down menu. Any other ideas?
|
|
Oleg
Admin Group Joined: 21 May 2003 Location: United States Status: Offline Points: 11234 |
Post Options
Thanks(0)
|
Hi,
Have to work automatically. Check maybe you call SetFlags later..
try to modify our sample to getsame result abnd attach change file here.
|
|
Oleg, Support Team
CODEJOCK SOFTWARE SOLUTIONS |
|
Post Reply | |
Tweet
|
Forum Jump | Forum Permissions You cannot post new topics in this forum You cannot reply to topics in this forum You cannot delete your posts in this forum You cannot edit your posts in this forum You cannot create polls in this forum You cannot vote in polls in this forum |