Path: utzoo!mnetor!uunet!seismo!sundc!pitstop!sun!decwrl!decvax!dartvax!eleazar!matthews From: matthews@eleazar.Dartmouth.EDU (Jim Matthews) Newsgroups: comp.sys.mac.programmer Subject: Re: Showing a list of all the available windows Message-ID: <8266@eleazar.Dartmouth.EDU> Date: 26 Feb 88 13:38:49 GMT References: Reply-To: matthews@eleazar.Dartmouth.EDU (Jim Matthews) Organization: Dartmouth College, Hanover, NH Lines: 19 In article rs4u+@andrew.cmu.edu (Richard Siegel) writes: > >I need to write a Windows menu... > >The question is, when to maintain it? Every activate/deactivate event? That >seems the best question; you can waste a LOT of time doing it every time >through the main event loop. Anyway, the window list only changes on >activate/deactivate events anyway.... > > --Rich Another approach, used in a program developed here and (I believe) MacApp, is to rebuild the windows menu whenever the user clicks on the menu bar. Since there are no cmd-key equivalents that's the only time it needs to be right, and it doesn't take enough time to slow the menu response significantly. Jim Matthews Jim.Matthews@dartmouth.edu