Angel Posted November 5, 2004 Posted November 5, 2004 Hi, I have a GUI where I've declared a dropdown box as follows: $combo_platform_change = GUICtrlCreatecombo ("", 40, 120, 180, 30, $CBS_DROPDOWNLIST + $CBS_AUTOHSCROLL + $WS_VSCROLL) $s_platform_list = "|4100|4105 Olympus|4105 Stornoway|Custom" $s_last_platform = "4105 Stornoway" GUICtrlSetData(-1,$s_platform_list,$s_last_platform) GUICtrlSetOnEvent(-1, "combo_platform_change_callback") GUICtrlSetTip(-1, "Each HW platform requires different CCS settings" & @CR & _ "Select CUSTOM to change the settings manually") When compiled, under Windows XP it works just fine. When I click on the dropdown arrow the dropdown appears with the list of elements. But in Windows NT, when I click on the arrow, an "empty" dropdown appears instead. I can still use the up and down buttons to go through the different options, but I cannot see them in the dropdown. What am I doing wrong? Cheers, Angel
Josbe Posted November 5, 2004 Posted November 5, 2004 Increase the height value. e.g.: 80 AUTOIT > AutoIt docs / Beta folder - AutoIt latest beta
Josbe Posted November 5, 2004 Posted November 5, 2004 Adding: I believe that isn't a AutoIt bug, it's a Windows feature. AUTOIT > AutoIt docs / Beta folder - AutoIt latest beta
Angel Posted November 5, 2004 Author Posted November 5, 2004 Thanks Josbe. That did the trick. However it is weird that this poblem happens only in Windowx XP...
CyberSlug Posted November 6, 2004 Posted November 6, 2004 Windows XP appears to be the only version that ignores the height of the combo box, so XP always shows the full box. Windows 9x/2000 allow you to restrict the height.... The help file should be more explicit that HEIGHT is the height of the drop-down list thing and not just the textbox thing. Use Mozilla | Take a look at My Disorganized AutoIt stuff | Very very old: AutoBuilder 11 Jan 2005 prototype I need to update my sig!
Angel Posted November 6, 2004 Author Posted November 6, 2004 Windows XP appears to be the only version that ignores the height of the combo box, so XP always shows the full box.Windows 9x/2000 allow you to restrict the height....The help file should be more explicit that HEIGHT is the height of the drop-down list thing and not just the textbox thing.<{POST_SNAPBACK}>You are right CyberSlug, I was confused by the help file, as I thought that the HEIGHT was for the textbox instead of for the actual dropdown box.Angel
Recommended Posts
Create an account or sign in to comment
You need to be a member in order to leave a comment
Create an account
Sign up for a new account in our community. It's easy!
Register a new accountSign in
Already have an account? Sign in here.
Sign In Now