Path: utzoo!news-server.csri.toronto.edu!cs.utexas.edu!swrinde!zaphod.mps.ohio-state.edu!rpi!uupsi!sunic!dkuug!resam!andrew From: andrew@resam.dk (Leif Andrew Rump) Newsgroups: comp.windows.open-look Subject: Re: XView Programming Style Keywords: XView Message-ID: <1991Mar15.093101.658@resam.dk> Date: 15 Mar 91 09:31:01 GMT References: <1991Mar13.193948.16328@sol.UVic.CA> Organization: RESAM Project Office, SAS, CPHML-V Lines: 33 In <1991Mar13.193948.16328@sol.UVic.CA> awatkins@lager.UVic.CA (Andrew Watkins) writes: >Hi! > I am writing a reasonably large program using XView to create the user > interface. With this program I have a bunch of popup window (~7) and > I'm adding more all the time. At present I create all of my windows > when the program starts up and set the visibility off for all the > windows I'm not using. Is this bad form? Should I create my windows as > they are needed and destroy them when I'm done or does it really matter? ~7 windows isn't that much and XView/OpenWindows isn't that speedy so I would (& do) create all the windows from the beginning (I'm using DevGuide, and that is how DevGuide does it!). This also make housekeeping much more simple, because values & states like inactive may be changed on hidden windows and you don't need to keep track on the values & state. Leif Andrew Leif Andrew Rump, AmbraSoft A/S, Stroedamvej 50, DK-2100 Copenhagen OE, Denmark UUCP: andrew@ambra.dk, phone: +45 39 27 11 77 / Currently at Scandinavian Airline Systems =======/ UUCP: andrew@resam.dk, phone: +45 32 32 51 54 \ SAS, RESAM Project Office, CPHML-V, P.O.BOX 150, DK-2770 Kastrup, Denmark NOTICE: 'Cause of SendMail ConFiGuRation FaultS weee may experiienc ProBleeems wiiiiiiith our return add andrew@resam.dk whiccccch may BeCoMe sOmEthIng like w@cph !%#@# @$$%$%(&**&(^%$ $#%%^&)(&^T^%^%^^# login: