Path: utzoo!utgpu!jarvis.csri.toronto.edu!mailrus!bbn!apple!well!shf From: shf@well.UUCP (Stuart H. Ferguson) Newsgroups: comp.sys.amiga.tech Subject: Re: Window resource sharing? Summary: I don't. Message-ID: <10790@well.UUCP> Date: 20 Feb 89 20:45:21 GMT References: <11640010@hpfcdc.HP.COM> <10780@well.UUCP> Reply-To: shf@well.UUCP (Stuart H. Ferguson) Organization: The Blue Planet Lines: 21 +-- ewhac@well.UUCP (Leo 'Bols Ewhac' Schwab) writes: | In article <11...M> cunniff@hpfcdc.HP.COM (Ross Cunniff) writes: | > 1. Is it legal for multiple windows to share the same Menu list? | Stu Ferguson would be able to comment more completely on the | subject, since he wrote Modeller 3D, which has multiple Windows using the | "same" Menus and Gadgets. I don't know the answer to the question of legality, but I did it by creating new menus and gadgets for each window at run time. Modeler can have any number of windows of the same class but since the gadgets and menu checkmarks may be in a different state for each window, I give them all their own private structures. I just made a set of statically declared Gadget structures as a prototype and wrote some code to make a copy for each new window. Not too difficult. Menus were more complex, but for that I wrote a generic package for generating new menu structures at run-time from a simple static specification. I sent that code to comp.sources.amiga so it should be generally available sometime. -- Stuart Ferguson (shf@well.UUCP) Action by HAVOC