Print Page | Close Window

SetCurrent() does not work!

Printed From: Codejock Forums
Category: Codejock Products
Forum Name: Property Grid
Forum Description: Topics Related to Codejock Property Grid
URL: http://forum.codejock.com/forum_posts.asp?TID=12644
Printed Date: 22 November 2024 at 12:34am
Software Version: Web Wiz Forums 12.04 - http://www.webwizforums.com


Topic: SetCurrent() does not work!
Posted By: rokky05
Subject: SetCurrent() does not work!
Date 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 :(



Replies:
Posted By: Oleg
Date Posted: 10 November 2008 at 2:22am
Hi,
 
Set value instead: pItemSongManager->SetValue(_T("Choose program"));


-------------
Oleg, Support Team
CODEJOCK SOFTWARE SOLUTIONS



Print Page | Close Window

Forum Software by Web Wiz Forums® version 12.04 - http://www.webwizforums.com
Copyright ©2001-2021 Web Wiz Ltd. - https://www.webwiz.net