View Single Post
Old 22 November 2021, 19:05   #1
peceha
Registered User
 
peceha's Avatar
 
Join Date: Dec 2017
Location: Poland
Age: 47
Posts: 284
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
peceha is offline  
 
Page generated in 0.05587 seconds with 11 queries