
18 Mar
2003
18 Mar
'03
5:22 a.m.
Wolfgang Thaller wrote:
Also, should enabling/disabling menu items be handled in a similar way, using a callback, or should menu items be explicitly enabled/disabled by IO actions like enableMenuItem and disableMenuItem? The first is probably much more practical...
Preferably the latter. If a toolkit supports "tear-off" menus, the
menu can remain on screen for an extended period, so the status of the
individual menu items can change while the menu is displayed.
Relying upon an on-popup callback is likely to result in tear-off
menus not working properly.
--
Glynn Clements