Jump to content
Sign in to follow this  

GUICtrlCreateCombo On Windows98

Recommended Posts


I have created a script to show a dropdownlist, it works fine on Windows XP, but when I run it on Windows 98, the items of the dropdownlist can't be shown, how can I correct it? Thanks!

Here is my script:

#include <GUIConstants.au3>

$Form1 = GUICreate("Test", 300, 343, 290, 197)

Opt( "GUICloseOnESC" , 1 )

$lblDepartment = GUICtrlCreateLabel("Test:", 30, 110, 64, 17)
$drpDepartment = GUICtrlCreateCombo("", 30, 125, 240, 25, $CBS_DROPDOWNLIST )
GUICtrlSetData(-1, "Item1|Item2|Item3|Item4")

$btnCancel = GUICtrlCreateButton("Cancel", 120, 300, 60)
$btnOK = GUICtrlCreateButton("OK", 210, 300, 60)

While 1
    $nMsg = GUIGetMsg()
    Case $nMsg = $btnOK
;     MsgBox(0, "OK", "")
        Case $nMsg = $btnCancel
;     MsgBox(262144, "Cancel", "")
    Case $nMsg = $GUI_EVENT_CLOSE
;     MsgBox(262144, "Close", "")
Edited by NadOo

Share this post

Link to post
Share on other sites


don't feel bad, it has puzzled many of us interminably despite being in the help file.

See help file; on Win98 it says to specify the height.

Best, randall

:"> Thank You! Now I have seen it in the help file...

Share this post

Link to post
Share on other sites

Why do people still use WIN 98?

Share this post

Link to post
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
Sign in to follow this  


Important Information

We have placed cookies on your device to help make this website better. You can adjust your cookie settings, otherwise we'll assume you're okay to continue.