Jump to content

ComboBox interaction [RESOLVED]


Recommended Posts

Hi - i have built up a combo box which have the values 1|2|3|4 - when the user chooses a number- how do i know which number the user has chosen??

CODE
$Max = GUICtrlCreateCombo("",915,275,50,50)

GUICtrlSetData(-1,"1|2|3|4",1)

$nMsg = GUIGetMsg()

While 1

Switch $nMsg

Case $Max

....

....

EndSwitch

Edited by ARozanski
Link to comment
Share on other sites

Hi - i have built up a combo box which have the values 1|2|3|4 - when the user chooses a number- how do i know which number the user has chosen??

CODE
$Max = GUICtrlCreateCombo("",915,275,50,50)

GUICtrlSetData(-1,"1|2|3|4",1)

$nMsg = GUIGetMsg()

While 1

Switch $nMsg

Case $Max

....

....

EndSwitch

$Read = GuiCtrlRead($Max)

MsgBox(0,"Read",$Read)

EDIT

This line should be in loop.

$nMsg = GUIGetMsg()
Edited by Andreik

When the words fail... music speaks.

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