Top menu - toggle selection
Hi,
I will be doing this in blitz but the question is about intuition so here it goes:
How to change the state of MENUTOGGLE item without using top menu?
I have few windows in my program and I have a top menu with a list of these windows (with a checkmark indicating if the window is open or not).
I want the checkmark to be gone when I close the window with CLOSE GADGET.
So far the only idea that came to my mind is to reproduce the whole menu:
ClearMenuStrip()
FreeMenus()
..here I edit the toggle state of the entry I want in my menu
CreateMenusA()
LayoutMenusA()
Is there a simpler way?
Thanks
|