Sign in to follow this  
Followers 0
ARozanski

ComboBox interaction [RESOLVED]

3 posts in this topic

#1 ·  Posted (edited)

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

Share this post


Link to post
Share on other sites



#2 ·  Posted (edited)

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

Share this post


Link to post
Share on other sites

Thank you very much!

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  
Followers 0