Newsgroups: comp.windows.open-look
Path: utzoo!utgpu!news-server.csri.toronto.edu!rpi!uupsi!phage!monardo
From: monardo@cshl.org (Pat Monardo)
Subject: Re: XView Programming Style
Message-ID: <1991Apr1.200322.12740@cshl.org>
Keywords: XView
Sender: news@cshl.org (NO MAIL)
Organization: Cold Spring Harbor Laboratory
References: <1991Mar13.193948.16328@sol.UVic.CA> <7207@ecs.soton.ac.uk> <1552@west.West.Sun.COM>
Date: Mon, 1 Apr 91 20:03:22 GMT

In article <1552@west.West.Sun.COM> lwake@runcible.West.Sun.COM (Larry Wake) writes:
>In article <7207@ecs.soton.ac.uk> mrd@ecs.soton.ac.uk (Mark Dobie) writes:
>>In <1991Mar13.193948.16328@sol.UVic.CA> awatkins@lager.UVic.CA
>(Andrew Watkins) writes:
>>>iI 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?
>>
>
>In the manual "XView Version 2 Reference Manual: Converting SunView
>Applications," Appendix B ("Performance Hints") says:
>
>    "As a rule, create resources such as pop-ups only at the time they are
>     required."
>
>If you think about it, this makes a lot of sense.  For example, in an
>application I'm writing there are nine windows, including the main
>window, with more possibly to come.  However, I figure the average user
>will use four of those with any frequency; the other four they may never
>use.
>
these are canvases (i assume). i use a configurable canvas array
and i create and destroy canvases on demand.
but i create a few panels at startup time which are command frames.
the panels are a bit tedious to build, so building them once
seemed reasonable to me (but i guess reason may not always the best guide).
so the rule seems to me to a bit vague. some questions i have
are: What is a pop-up? Does the size of the application matter?

