igorm Posted May 14, 2008 Share Posted May 14, 2008 In my GUI I created Combo using GUICtrlCreateCombo. In order to read something from it, first I need to set some data using GUICtrlSetData. But is there a way so I can read from combo something that is manually entered using keyboard? Cheers Office 2000/XP/2003/2007 Slipstreamer Link to comment Share on other sites More sharing options...
monoceres Posted May 14, 2008 Share Posted May 14, 2008 Just use GUICtrlRead() as usual. Opt("GUIOnEventMode",1) GUICreate("My GUI",150,100) GUICtrlCreateButton("Check value",10,10) GUICtrlSetOnEvent(-1,"check") $combo=GUICtrlCreateCombo("",10,50) GUISetOnEvent(-3,"close") GUISetState (@SW_SHOW) While 1 sleep(100) Wend Func close () Exit EndFunc Func check() MsgBox(0,"Value of combo",GUICtrlRead($combo)) EndFunc Broken link? PM me and I'll send you the file! Link to comment Share on other sites More sharing options...
igorm Posted May 14, 2008 Author Share Posted May 14, 2008 Thanks. I must did something wrong in first place so it did not work. Cheers Office 2000/XP/2003/2007 Slipstreamer 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