Swimming_Bird Posted January 23, 2006 Share Posted January 23, 2006 How can i make it so they cant input any thing into the combbobox and are forced to use defined values? Thanks. Link to comment Share on other sites More sharing options...
seandisanti Posted January 23, 2006 Share Posted January 23, 2006 How can i make it so they cant input any thing into the combbobox and are forced to use defined values? Thanks.like this: #include<guiconstants.au3> $gui = GUICreate("blah",200,200) $cb = GUICtrlCreateCombo("",10,10,175,190,$CBS_DROPDOWNLIST) GUICtrlSetData($cb,"My|Choices|Only","") GUISetState() While 1 $msg = GUIGetMsg() select Case $msg = $GUI_EVENT_CLOSE Exit EndSelect WEnd Link to comment Share on other sites More sharing options...
Swimming_Bird Posted January 24, 2006 Author Share Posted January 24, 2006 like this: #include<guiconstants.au3> $gui = GUICreate("blah",200,200) $cb = GUICtrlCreateCombo("",10,10,175,190,$CBS_DROPDOWNLIST) GUICtrlSetData($cb,"My|Choices|Only","") GUISetState() While 1 $msg = GUIGetMsg() select Case $msg = $GUI_EVENT_CLOSE Exit EndSelect WEndthx, i dont know how i missed that. Link to comment Share on other sites More sharing options...
seandisanti Posted January 24, 2006 Share Posted January 24, 2006 thx, i dont know how i missed that.np, glad i could help Link to comment Share on other sites More sharing options...
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