Jump to content

GUICtrlCreateCombo On Windows98


NadOo
 Share

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