XuxinhaKill Posted February 10, 2012 Share Posted February 10, 2012 So I'm trying to create my first GUI and I have some questions... I have a lot of checkbox in my GUI and a button to "Start"... when this button is pressed I need to verify each checkbox... I don't know exactly how to explain cause my english sucks ¬¬... The user check the boxes he wants then press "Start" And I need something like this... If checkbox1 is checked then Func1() If checkbox2 is checked then Func2() ...I wonder if I can create a vector of 0's and 1's based on checkbox status, or if there's another easiest way to do something like this... Another question... I have this Input attached to an UpDown button... and I need the input value as an integer... Sorry about my english. Link to comment Share on other sites More sharing options...
johnmcloud Posted February 10, 2012 Share Posted February 10, 2012 (edited) If GUICtrlRead($Checkbox1) = $GUI_CHECKED Then _Func1() EndIf If GUICtrlRead($Checkbox2) = $GUI_CHECKED Then _Func2() EndIf All clear? I don't understand the second question... Edited February 10, 2012 by johnmcloud Link to comment Share on other sites More sharing options...
Guest Posted February 10, 2012 Share Posted February 10, 2012 (edited) ...I wonder if I can create a vector of 0's and 1's based on checkbox status, or if there's another easiest way to do something like this...What do you mean, do you want to get the status? if that's what you want then you can use GUICtrlGetState ($ControlID) but please read the help file on this function.Another question...I have this Input attached to an UpDown button... and I need the input value as an integer...Sorry about my english.To get the value for this sort of thing you use: GUICtrlRead($ControlID) Edited February 10, 2012 by Guest Link to comment Share on other sites More sharing options...
XuxinhaKill Posted February 10, 2012 Author Share Posted February 10, 2012 thanks johnmcloud and Aipion... You both used the GUICtrlRead I'll see how it works and implement it in my GUI... I'll proly post a reply tomorrow... Thanks a lot guys Link to comment Share on other sites More sharing options...
XuxinhaKill Posted February 12, 2012 Author Share Posted February 12, 2012 Thanks guys... I did all I have to do using GUICtrlRead... Thanks a lot... everything is working now xD Link to comment Share on other sites More sharing options...
xeroTechnologiesLLC Posted February 12, 2012 Share Posted February 12, 2012 Koda form designer is a very useful tool when building GUI's. I'm extremely impatient when it comes to GUI building so if I can piece it together very fast I will. You can find a download link here on the forums and the zip file is very easy to work with. Good luck in future coding! Link to comment Share on other sites More sharing options...
XuxinhaKill Posted February 13, 2012 Author Share Posted February 13, 2012 In fact I used it to desing my GUI xD... Thanks Link to comment Share on other sites More sharing options...
xeroTechnologiesLLC Posted February 15, 2012 Share Posted February 15, 2012 good times. lol I enjoy Koda - a very powerful and useful tool for sure. 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