Checked Menu Item

Started by chrislegarth, June 07, 2019, 09:42:25 AM

Previous topic - Next topic

chrislegarth

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!

td

You add or remove the menu check by adding or removing the @csMenuCheck style from the menu item using DialogControlState.
"No one who sees a peregrine falcon fly can ever forget the beauty and thrill of that flight."
  - Dr. Tom Cade

chrislegarth

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

td

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.
"No one who sees a peregrine falcon fly can ever forget the beauty and thrill of that flight."
  - Dr. Tom Cade