SetDropDownListStyle changes behavior in Ribbon |
Post Reply |
Author | |
cpede
Senior Member Joined: 13 August 2004 Location: Denmark Status: Offline Points: 668 |
Post Options
Thanks(0)
Posted: 29 September 2010 at 4:38am |
I found a strange difference in how a combo box gallery is working in a Ribbon. The behavior can be see in the examples by changing the pCombo->SetDropDownListStyle() to pCombo->SetDropDownListStyle(FALSE), e.g. for the Font Size control. The FALSE should according to the documentation make the combo box edit box read only. The strange effect can be seen above. When the value is e.g. 36 and pCombo->SetDropDownListStyle() is used we get a drop-down list with 36 selected (as expected) and seen in the samples. If I change it to pCombo->SetDropDownListStyle(FALSE) I get the behavior in the right most image. The selection is set to the first item in the list.
I believe this is a bug. Anyway to get the expected behavior?
|
|
Product: Xtreme ToolkitPro (24.0.0)
Platform: Windows 10 (x64) Language: Visual Studio 2017 (C++) |
|
cpede
Senior Member Joined: 13 August 2004 Location: Denmark Status: Offline Points: 668 |
Post Options
Thanks(0)
|
Ok found the answer myself :-)
Instead of using pCombo->SetDropDownListStyle(FALSE) I use the combination:
pCombo->SetDropDownListStyle() and pCombo->SetEditStyle(ES_READONLY);
Then I get the same effect. But I still think the other way should work also.
|
|
Product: Xtreme ToolkitPro (24.0.0)
Platform: Windows 10 (x64) Language: Visual Studio 2017 (C++) |
|
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 |