Print Page | Close Window

Propertygrid & Combo

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=8846
Printed Date: 16 November 2024 at 4:09am
Software Version: Web Wiz Forums 12.04 - http://www.webwizforums.com


Topic: Propertygrid & Combo
Posted By: Ocrana
Subject: Propertygrid & Combo
Date Posted: 20 November 2007 at 11:41pm
Hi,

I use a PropertyGrid Item with a ComboButton. Iam wondering to have no chance to receive the selected index of the list, only a string value. Do i miss something? I use:

CXTPPropertyGridItem* m_pQualityItem;
m_pQualityItem = pCategoryApplication->AddChildItem(new CXTPPropertyGridItem(IDS_QUALITY_ITEM));
m_pQualityItem->GetConstraints()->AddConstraint(_T("Max. Sharp (Fastest)"));
....    m_pQualityItem->SetFlags(xtpGridItemHasComboButton|xtpGridItemHasEdit);
m_pQualityItem->SetConstraintEdit(TRUE);
m_pQualityItem->SetValue(_T("Default (Normal Speed)"));

Is it not possible to receive the index? Or do I have to use another GridItem Type?

Ingo



Replies:
Posted By: Oleg
Date Posted: 21 November 2007 at 9:07am
if you use SetConstraintEdit I recommend use CXTPPropertyGridItemEnum instead. and SetEnum/GetEnum instead of SetValue.

-------------
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