kor Posted October 6, 2011 Share Posted October 6, 2011 I know I've seen this feature before I just don't know what it's called or what to search for. I have a gui. I have a "file" menu at the top right corner then I click on and I have separate GUICtrlCreateMenu items. What I want is to have something like this. File -> Item 1 --->item a --->item b -> Item 2 I already have the first part built. My trouble is making Item2 be able to be clicked on and act as a sort of check box. If By default when you run the gui item2 will not be checked. However if you goto file and click on item2 then a check mark appears next to it and it will stay checked until you either uncheck it manually or restart the script. Then I just need to know how to check the status of item2 during script execution to determine if item2 is in the checked or unchecked state. Link to comment Share on other sites More sharing options...
kor Posted October 6, 2011 Author Share Posted October 6, 2011 I should read the help more and look at examples If BitAND(GUICtrlRead($viewstatusitem), $GUI_CHECKED) = $GUI_CHECKED Then GUICtrlSetState($viewstatusitem, $GUI_UNCHECKED) GUICtrlSetState($statuslabel, $GUI_HIDE) Else GUICtrlSetState($viewstatusitem, $GUI_CHECKED) GUICtrlSetState($statuslabel, $GUI_SHOW) EndIf Xandy 1 Link to comment Share on other sites More sharing options...
LeCarre Posted December 13, 2011 Share Posted December 13, 2011 (edited) LoL, I should read less, I blew off this challenge for 30 minutes because I read up on it. Specifically the STATE TABLE showsRadio, Checkbox or ListViewItems will be CheckedNot Seeing Menu's Included, I assumed that another approach was needed. Edited December 13, 2011 by LeCarre 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