Path: utzoo!utgpu!news-server.csri.toronto.edu!rpi!usc!snorkelwacker.mit.edu!bloom-beacon!eru!hagbard!sunic!mcsun!ukc!icdoc!sot-ecs!mrd From: mrd@ecs.soton.ac.uk (Mark Dobie) Newsgroups: comp.windows.open-look Subject: Re: XView Programming Style Keywords: XView Message-ID: <7207@ecs.soton.ac.uk> Date: 18 Mar 91 14:53:45 GMT References: <1991Mar13.193948.16328@sol.UVic.CA> Organization: University of Southampton, UK Lines: 20 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? Good question. This is how I do it too, but when I told my friend the Microsoft Windows/Presentation Manager programmer he nearly had a heart attack. He went on about the memory and the system resources and stuff. I reckon this way is neater because you can do things to the windows when they are invisible. Besides, creating the windows does seem to take a while sometimes. Mark.