Jump to content
Sign in to follow this  
NadOo

GUICtrlCreateCombo On Windows98

Recommended Posts

NadOo

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>
#NoTrayIcon

$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)
GUISetState(@SW_SHOW)


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

Share this post


Link to post
Share on other sites
NadOo

Hi,

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
Thatsgreat2345

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  

×