Menu items - disable/enable
Posted: Sun Mar 20, 2005 2:11 pm
When I want to disable a menuitem, I use
and enable:
The problem: The menuitem is not turning gray... but when I click the menuitem, I know that it is disabled. How can I make a menuitem turn gray when it is disabled?
I've searched the forum, and it seems like I have to use wxUpdateUIEvent, but I have really no idea how to use it
Code: Select all
menu->Enable(ID,FALSE);
Code: Select all
menu->Enable(ID,TRUE);
I've searched the forum, and it seems like I have to use wxUpdateUIEvent, but I have really no idea how to use it
