Re: Available menu items

Ken Cheetham <[email protected]>
Newsgroups gmane.lisp.allegro
Message-ID <[email protected]>
  I'm using Allegro CL 6.0 for Windows.  I'd like to dynamically change
  the availability of menu items in an application I'm building, but I
  can't quite figure out how to do it cleanly.  The way I think it works
  is that if the 'available' slot in a menu item is non-nil, the menu
  item is available, otherwise not.  Is there a way to have a menu item
  test the state of the interface before its menu is displayed, in
  event-driven fashion, or do I need to change the 'available' slot
  explicitly?  Ideally I'd just put a function in the 'available' slot
  to be called at the appropriate time, but that doesn't seem to work.

See the doc page for cg:about-to-show-menu, which is provided for this
purpose.

Ken Cheetham                          [email protected]
Franz Inc.                            Voice: (510) 548-3600 x124
1995 University Avenue, Suite 275     Fax:   (510) 548-8253
Berkeley, CA  94704                   Web:   http://www.franz.com/
lmpx.com only provides a reader for public news (NNTP) servers. It is not affiliated with the servers or forums shown here and is not responsible for the content of articles, which is written by their respective authors.