[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
Re: Help with menu enable/disable and temp. dialogs
- To: info-mcl@digitool.com
- Subject: Re: Help with menu enable/disable and temp. dialogs
- From: lynch@ils.nwu.edu (Richard Lynch)
- Date: 4 Feb 1995 02:45:50 GMT
- Organization: ILS
- References: <1995Feb2.195748.14157@ptolemy-ethernet.arc.nasa.gov>
- Sender: owner-info-mcl@digitool.com
In article <1995Feb2.195748.14157@ptolemy-ethernet.arc.nasa.gov>,
chucko@kronos.arc.nasa.gov (Chuck Fry ) wrote:
|Background: I'm a relative newcomer to the Mac and Mac CL, but have
|been programming in Common Lisp for about 8 years.
|
|Our application has several windows. One of these windows, the
|Modeling window, is supposed to enable its menubar menus when it is
|the active window, and disable them when it is not. I naively did
|this by calling MENU-ENABLE and MENU-DISABLE within :AFTER methods on
|VIEW-ACTIVATE-EVENT-HANDLER and VIEW-DEACTIVATE-EVENT-HANDLER
|respectively.
Perhaps an alternative would be to use the :update-function slot of the
menus themselves to update the menus.
--
--
--
-- "TANSTAAFL" Rich lynch@ils.nwu.edu