Magically Disappearing Menus
Quote:
>Okay, I laid out the menus, and enabled them using the EnableMenuItems
>event. I also assigned a Menu Handler to each menu item. no here's the
>problem. all of them work fine, except for the "Close Window" menu button.
>once you select that it disables all the other menus (except for the Quit
>command).
That's probably because your menu items are being enabled inside the window's
EnableMenuItems event. With the window gone, there's no EnableMenuItems event
to enable those menu items.
Create an instance of the Application class in your project, and move the code
that's in the window's EnableMenuItems event into the app's EnableMenuItems
event.
--
"Quand la morale triomphe, il se passe des choses tres vilaines."
Literature. Art. Photography. Forums. Shareware. Kink. Sex.
All at: http://www.xeromag.com/franklin.html