Jump to content

Recommended Posts

Posted (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 by doucment
Posted

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

<{POST_SNAPBACK}>

ThanX !

I see! The "height" is the height of Dropdown,not of the text for show.

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 account

Sign in

Already have an account? Sign in here.

Sign In Now
  • Recently Browsing   0 members

    • No registered users viewing this page.
×
×
  • Create New...