doucment Posted July 2, 2005 Posted July 2, 2005 (edited) I Write some code use "GUICtrlCreateCombo",I thought maybe the Combo can be Dropdow,but it don't work. #include <GUIConstants.au3> HotKeySet("{ESC}", "Terminate") Func Terminate() exit EndFunc $Gui = GuiCreate("test", 585, 380);,(@DesktopWidth-585)/2,(@DesktopHeight-380)/2 ) $comb=GUICtrlCreateCombo ("All",330,330,180,20) GUICtrlSetData($comb,"1|2|3","all") GuiSetState() While 1 Wend When I delete it's "width" and "height " ,It works well. How do I set it's "width" and "height" ? #include <GUIConstants.au3> HotKeySet("{ESC}", "Terminate") Func Terminate() exit EndFunc $Gui = GuiCreate("test", 585, 380);,(@DesktopWidth-585)/2,(@DesktopHeight-380)/2 ) $comb=GUICtrlCreateCombo ("All",330,330) GUICtrlSetData($comb,"1|2|3","all") GuiSetState() While 1 Wend PS: I'am using autoit 3.1.1.55 Thank you . Edited July 2, 2005 by doucment
GaryFrost Posted July 2, 2005 Posted July 2, 2005 Using 3.1.1.55 and both of your examples work the same, there is a drop down. Also using Win XP SP2 If you are using Win2k, set the height to 100 or something like that SciTE for AutoItDirections for Submitting Standard UDFs Don't argue with an idiot; people watching may not be able to tell the difference.
doucment Posted July 4, 2005 Author Posted July 4, 2005 Using 3.1.1.55 and both of your examples work the same, there is a drop down.Also using Win XP SP2If you are using Win2k, set the height to 100 or something like that<{POST_SNAPBACK}> ThanX ! I see! The "height" is the height of Dropdown,not of the text for show.
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