Jump to content

Combobox


Recommended Posts

I can't find what I need then I'll ask here:

HOW do I make combobox?!

Well I know how to "create" it in KODA but I don't know how to add 'strings' there and how to use it - how to make script check which string from combobox is choosen and if it's choosen then how to do action etc...

Please I'm stuck with that for like 3h...

Link to comment
Share on other sites

$GUI = GUICreate("GUI", 241, 68, -1, -1)
$Checkbox = GUICtrlCreateCheckbox("Checkbox", 88, 8, 73, 17)
$Button = GUICtrlCreateButton("Button", 88, 32, 75, 25)
GUISetState(@SW_SHOW)

While 1
    Switch GUIGetMsg()
        Case -3
            Exit
        Case $Button
            If GUICtrlRead($Checkbox) = 1 Then;checked
                
            Else;unchecked
                
            EndIf
    EndSwitch
WEnd

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