Codejock Forums Homepage
Forum Home Forum Home > Codejock Products > Visual C++ MFC > Property Grid
  New Posts New Posts RSS Feed - Propertygrid & Combo
  FAQ FAQ  Forum Search   Events   Register Register  Login Login

Propertygrid & Combo

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


Joined: 20 November 2007
Status: Offline
Points: 32
Post Options Post Options   Thanks (0) Thanks(0)   Quote Ocrana Quote  Post ReplyReply Direct Link To This Post Topic: Propertygrid & Combo
    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
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: 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
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.152 seconds.