[GUI] Menu Command Events

Krasimir Angelov ka2_mail@yahoo.com
Tue, 18 Mar 2003 00:29:57 -0800 (PST)


--- Wolfgang Thaller <wolfgang.thaller@gmx.net> 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...
I prefer the first approach. For that aim the Win32
API provides WM_INITMENUPOPUP message. Under GTK the
"focus-in-event" is a proper replacement for
WM_INITMENUPOPUP. Is there a way to implement the
UpdateMenu command under MacOS.

Krasimir

__________________________________________________
Do you Yahoo!?
Yahoo! Platinum - Watch CBS' NCAA March Madness, live on your desktop!
http://platinum.yahoo.com