![]() |
Question regarding combobox items |
Post Reply
|
| Author | |
znakeeye
Senior Member
Joined: 26 July 2006 Status: Offline Points: 1672 |
Post Options
Thanks(0)
Quote Reply
Topic: Question regarding combobox itemsPosted: 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/
|
|
![]() |
|
znakeeye
Senior Member
Joined: 26 July 2006 Status: Offline Points: 1672 |
Post Options
Thanks(0)
Quote Reply
Posted: 20 May 2009 at 8:20am |
|
Solved:
pControlCombo->ModifyListBoxStyle(0, LBS_OWNERDRAWFIXED | LBS_HASSTRINGS);
|
|
|
PokerMemento - http://www.pokermemento.com/
|
|
![]() |
|
Post Reply
|
|
|
Tweet
|
| Forum Jump | Forum Permissions ![]() You cannot post new topics in this forum You cannot reply to topics in this forum You cannot delete your posts in this forum You cannot edit your posts in this forum You cannot create polls in this forum You cannot vote in polls in this forum |