Jump to content

Reading from Combo


Recommended Posts

Just use GUICtrlRead() as usual.

Opt("GUIOnEventMode",1)
GUICreate("My GUI",150,100)
GUICtrlCreateButton("Check value",10,10)
GUICtrlSetOnEvent(-1,"check")
$combo=GUICtrlCreateCombo("",10,50)
GUISetOnEvent(-3,"close")
GUISetState (@SW_SHOW)
While 1
    sleep(100)
Wend

Func close ()
    Exit
EndFunc

Func check()
    MsgBox(0,"Value of combo",GUICtrlRead($combo))
EndFunc

:)

Broken link? PM me and I'll send you the file!

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