Print Page | Close Window

SetDropDownListStyle changes behavior in Ribbon

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=17347
Printed Date: 23 November 2024 at 9:53am
Software Version: Web Wiz Forums 12.04 - http://www.webwizforums.com


Topic: SetDropDownListStyle changes behavior in Ribbon
Posted By: cpede
Subject: SetDropDownListStyle changes behavior in Ribbon
Date 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++)



Replies:
Posted By: cpede
Date Posted: 29 September 2010 at 4:43am
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++)



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