WinBatch® Technical Support Forum

All Things WinBatch => WinBatch => Topic started by: chrislegarth on June 07, 2019, 09:42:25 AM

Title: Checked Menu Item
Post by: chrislegarth on June 07, 2019, 09:42:25 AM
Is there a way to change a "checked" dialog menu item to "not checked", similar to checking and unchecking a checkbox with DialogControlSet? Or is the check just a graphic?
I can't seem to find it, am I just missing it?

As always, thanks!
Title: Re: Checked Menu Item
Post by: td on June 07, 2019, 11:05:45 AM
You add or remove the menu check by adding or removing the @csMenuCheck style from the menu item using DialogControlState.
Title: Re: Checked Menu Item
Post by: chrislegarth on June 07, 2019, 11:25:42 AM
Thanks Tony
I could not get "Set" out of my head.  It make sense that it is a "State" since it is a style.  Thanks for smacking the back of my head!  :D
Title: Re: Checked Menu Item
Post by: td on June 07, 2019, 01:40:35 PM
It is easy enough to confuse the menu item check style with checkbox controls because of the name similarity. The former is just a bitmap whereas the latter is a functioning window with its own windows procedure that automagically changes the window's appearance when the user interacts with it.