Jump to content
Sign in to follow this  

how to make a file menu item checked or not checked

Recommended Posts

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.


-> 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.

Share this post

Link to post
Share on other sites

I should read the help more and look at examples :graduated:

If BitAND(GUICtrlRead($viewstatusitem), $GUI_CHECKED) = $GUI_CHECKED Then
                GUICtrlSetState($viewstatusitem, $GUI_UNCHECKED)
                GUICtrlSetState($statuslabel, $GUI_HIDE)
                GUICtrlSetState($viewstatusitem, $GUI_CHECKED)
                GUICtrlSetState($statuslabel, $GUI_SHOW)

Share this post

Link to post
Share on other sites

LoL, I should read less, I blew off this challenge for 30 minutes because I read up on it.

Specifically the STATE TABLE shows

Radio, Checkbox or ListViewItems will be Checked

Not Seeing Menu's Included, I assumed that another approach was needed.

Edited by LeCarre

Share this post

Link to post
Share on other sites

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 account

Sign in

Already have an account? Sign in here.

Sign In Now
Sign in to follow this  

  • Recently Browsing   0 members

    No registered users viewing this page.

  • Create New...