LOULOU Posted March 29, 2005 Posted March 29, 2005 With Windows 2000 the following statement cause trouble $Edit_15 = GUICtrlCreateCombo($carte[0], 140, 217, 100, 20)For seeing all items in combobox with Win 2000 you are obliged to programm$Edit_15 = GUICtrlCreateCombo($carte[0], 140, 217, 100, 80)
jpm Posted March 29, 2005 Posted March 29, 2005 With Windows 2000 the following statement cause trouble $Edit_15 = GUICtrlCreateCombo($carte[0], 140, 217, 100, 20)For seeing all items in combobox with Win 2000 you are obliged to programm$Edit_15 = GUICtrlCreateCombo($carte[0], 140, 217, 100, 80)<{POST_SNAPBACK}>As stated in the doc the behavior is different between XP/2000 so it is normal you have to increase the height to have both working. XP does use the height it do what it want.
Digits Posted March 29, 2005 Posted March 29, 2005 Just had this issue today, You can also leave the height field blank, Win2000 then looks same as WinXP.
twbradio Posted March 29, 2005 Posted March 29, 2005 Just had this issue today, You can also leave the height field blank, Win2000 then looks same as WinXP.<{POST_SNAPBACK}>I am unable to leave this blank as in the line:$combo4id = GUICtrlCreateCombo ( "" , 108, 122, 165, ,$CBS_SORT+$CBS_DROPDOWNLIST )Nor does it work in XP if I use the following lines:$combo1id = GUICtrlCreateCombo ( "" , 108, 32, 165 ) GUICtrlSetStyle ( $combo1id, $CBS_SORT+$CBS_DROPDOWNLIST )In code snippet 1, I receive an error when the script executes, and in snippet 2, the drop down list is there but the selected value does not appear in the box. A default value of 100 works OK for most of the combo boxes, but I have one combo box with several entries (20 or so) that this may be problematic with. Anyone have a TRS 80 Model III for sale?
GaryFrost Posted March 29, 2005 Posted March 29, 2005 use a -1 for it to use defaults $combo4id = GUICtrlCreateCombo ( "" , 108, 122, 165,-1 ,$CBS_SORT+$CBS_DROPDOWNLIST ) SciTE for AutoItDirections for Submitting Standard UDFs Don't argue with an idiot; people watching may not be able to tell the difference.
twbradio Posted March 29, 2005 Posted March 29, 2005 Thank you very much, I hadn't had the opportunity to try that as a fix, but I had come to the conclusion that -1 might be the right answer. Tom Anyone have a TRS 80 Model III for sale?
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