I'm trying to build an app with a menu. Some menu items I would like to enable/disable functionality. I notice that by default when I add a command to a menu I can set the style to to "toggle".
This gives me the feature I want -- a nice tickbox that appears/dissapears.
My question is this: how do I check the state of this control?