ARozanski Posted October 20, 2008 Posted October 20, 2008 (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 October 20, 2008 by ARozanski
Andreik Posted October 20, 2008 Posted October 20, 2008 (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 October 20, 2008 by Andreik
Recommended Posts
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 accountSign in
Already have an account? Sign in here.
Sign In Now