![]() |
SetCurrent() does not work! |
Post Reply
|
| Author | |
rokky05
Groupie
Joined: 04 February 2008 Location: Ukraine Status: Offline Points: 18 |
Post Options
Thanks(0)
Quote Reply
Topic: SetCurrent() does not work!Posted: 09 November 2008 at 7:56am |
|
Hi, I created new grid with ItemConstraints:
CXTPPropertyGridItem * pItemSongManager = pPlayersSettings->AddChildItem(new CXTPPropertyGridItem(_T("Player"), _T("(None)"))); CXTPPropertyGridItemConstraints* pListpSongManager = pItemSongManager->GetConstraints(); pListpSongManager->AddConstraint(_T("(None)")); pListpSongManager->AddConstraint(_T("Choose program")); pItemSongManager->SetFlags(xtpGridItemHasComboButton); pPlayersSettings->Expand();After that I want set some else function in program "Choose program" ass selected, so I write: pListpSongManager->SetCurrent(1);But it does not work :(
|
|
![]() |
|
Oleg
Senior Member
Joined: 21 May 2003 Location: United States Status: Offline Points: 11234 |
Post Options
Thanks(0)
Quote Reply
Posted: 10 November 2008 at 2:22am |
|
Hi,
Set value instead: pItemSongManager->SetValue(_T("Choose program"));
|
|
|
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 |