Jump to content

Help.......About "GUICtrlCreateCombo"


Recommended Posts

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
Link to comment
Share on other sites

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.

 

Link to comment
Share on other sites

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.

Link to comment
Share on other sites

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
 Share

  • Recently Browsing   0 members

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