[GUI] Menu Command Events

Glynn Clements glynn.clements@virgin.net
Tue, 18 Mar 2003 10:22:49 +0000


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 <glynn.clements@virgin.net>