RE: question on menubar implementation

"Ben Wing" <[email protected]> Wed, 9 Feb 2005 20:53:07 -0600
Newsgroups gmane.emacs.xemacs.design
Message-ID <002201c50f1b$a684c5a0$220110ac@neeeeeee2>
> Hi, there.
> Didn't get many replies *g* to my last post
> ( 
> http://list-archive.xemacs.org/xemacs-design/200412/msg00062.h
> tml ), so I'll post the question separately, maybe it won't 
> be filtered out on subj=.*BeOS.* :p
> 
> The menubar implementations I have seen so far all seem to 
> construct menu trees on the fly (= submenus are created when 
> an item is selected). It would be simpler for me if I could 
> generate all the menu at once, and update it in case it 
> changes. Is this at all possible ?

It would be much better if you did it the same way that all the current
window systems do it.  I suppose you *could* generate the entire menu in
advance, but you'd still have to regenerate it when a submenu is selected
because that's what the lisp code (the menu filter) expects.