Print Page | Close Window

Question regarding combobox items

Printed From: Codejock Forums
Category: Codejock Products
Forum Name: Command Bars
Forum Description: Topics Related to Codejock Command Bars
URL: http://forum.codejock.com/forum_posts.asp?TID=14344
Printed Date: 27 February 2025 at 5:58pm
Software Version: Web Wiz Forums 12.04 - http://www.webwizforums.com


Topic: Question regarding combobox items
Posted By: znakeeye
Subject: Question regarding combobox items
Date Posted: 20 May 2009 at 5:23am
XTP 13.
 
CXTPControlComboBox *pControlCombo = (CXTPControlComboBox*)pGroup->Add(xtpControlComboBox, ID_COMBO1);
pControlCombo->SetStyle(xtpButtonIcon);
pControlCombo->SetWidth(120);
pControlCombo->SetListIconId(0);
 
That line causes the dropdown list to be drawn as a popup menu, which I really like! Is there a more intuitive API to accomplish the same thing? (The above is hacky...)


-------------
PokerMemento - http://www.pokermemento.com/



Replies:
Posted By: znakeeye
Date Posted: 20 May 2009 at 8:20am
Solved:
 
pControlCombo->ModifyListBoxStyle(0, LBS_OWNERDRAWFIXED | LBS_HASSTRINGS);


-------------
PokerMemento - http://www.pokermemento.com/



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