Path: utzoo!mnetor!uunet!lll-winken!lll-lcc!lll-tis!ames!ucsd!sdcsvax!ucsdhub!hp-sdd!hplabs!hpda!hpcuhb!hpindda!atchison From: atchison@hpindda.HP.COM (Lee Atchison) Newsgroups: comp.sys.mac.programmer Subject: Re: Showing a list of all the available windows Message-ID: <7390002@hpindda.HP.COM> Date: 24 Feb 88 00:50:26 GMT References: <8224@eleazar.Dartmouth.EDU> Organization: HP Information Networks, Cupertino, CA Lines: 23 If you want to get fancy, you can do the following optimization to the "delete all menu items, then add them back in" scenerio: If the number of new windows is equal to the number of old windows to be placed in the menu, then just use SetIText (I think this is the call, if you want more info, send me mail) to change the name of the text in the menu items. If the number of new windows is greater than the number of old windows, then simply "add" the necessary number of menu items, then use SetIText. If the number of new windows is less than the number of old windows, then you are out of luck and you have to do the "delete, then add them all back in" method. I recently faced the same problem, and decided it wasn't worth the effort, so I did the "delete/add them in" for all cases, the code isn't all that bad, and I don't think it is all that inefficient (if I'm wrong, please let me know). -lee ---- Lee Atchison Hewlett Packard, Information Networks Division atchison%hpindda@hplabs.hp.com