Codejock Forums Homepage
Forum Home Forum Home > Codejock Products > Visual C++ MFC > Property Grid
  New Posts New Posts RSS Feed - SetCurrent() does not work!
  FAQ FAQ  Forum Search   Events   Register Register  Login Login

SetCurrent() does not work!

 Post Reply Post Reply
Author
Message
rokky05 View Drop Down
Groupie
Groupie


Joined: 04 February 2008
Location: Ukraine
Status: Offline
Points: 18
Post Options Post Options   Thanks (0) Thanks(0)   Quote rokky05 Quote  Post ReplyReply Direct Link To This Post 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 :(
Back to Top
Oleg View Drop Down
Admin Group
Admin Group


Joined: 21 May 2003
Location: United States
Status: Offline
Points: 11234
Post Options Post Options   Thanks (0) Thanks(0)   Quote Oleg Quote  Post ReplyReply Direct Link To This Post Posted: 10 November 2008 at 2:22am
Hi,
 
Set value instead: pItemSongManager->SetValue(_T("Choose program"));
Oleg, Support Team
CODEJOCK SOFTWARE SOLUTIONS
Back to Top
 Post Reply Post Reply
  Share Topic   

Forum Jump Forum Permissions View Drop Down

Forum Software by Web Wiz Forums® version 12.04
Copyright ©2001-2021 Web Wiz Ltd.

This page was generated in 0.172 seconds.