1. Fun with Windows...

Heya all!

Alright, I want to create error windows, yet I don't want them created
at the start of the program.

I've noticed that many of my windows are constants. Do they have to
be this way? (constants can't be inside procedures, so i've read)

TIA,

Blessed Be! --"LEVIATHAN"

new topic     » topic index » view message » categorize

2. Re: Fun with Windows...

Leviathan,

I think creating windows is similar to having to create procedures or
functions before you can call them: the interpreter has to *know* about them
before you can *use* them, but *creating* them doesn't immediately invoke
them.

So, if I understand this correctly, the act of creating a window *in your
program* doesn't at that time put that window on the screen; you have to
"openWindow" to do that, and you can do that whenever it is appropriate in
your program.

So it shouldn't be any problem at all to "create" your error window at the
beginning of your program, just don't *use* it until you need to, right??

Dan


----- Original Message -----
From: "LEVIATHAN" <leviathan at USWEST.NET>
To: <EUPHORIA at LISTSERV.MUOHIO.EDU>
Sent: Tuesday, August 29, 2000 3:56 AM
Subject: Fun with Windows...


> Heya all!
>
> Alright, I want to create error windows, yet I don't want them created
> at the start of the program.
>
> I've noticed that many of my windows are constants. Do they have to
> be this way? (constants can't be inside procedures, so i've read)
>
> TIA,
>
> --"LEVIATHAN"

new topic     » goto parent     » topic index » view message » categorize

3. Re: Fun with Windows...

> -----Original Message-----
> From: LEVIATHAN
>
> Heya all!
>
> Alright, I want to create error windows, yet I don't want them created
> at the start of the program.
>
> I've noticed that many of my windows are constants. Do they have to
> be this way? (constants can't be inside procedures, so i've read)

You don't have to use constants.  Since most programs are pretty 'static' in
terms of the controls/windows they use, constants make sense, though.  You
can create stuff whenever you want, and you can track the id's however you
want (or not at all).

What you probably want to do is create an error window ahead of time, and
simply keep it hidden until you need it.  Unless you want to have many open
at once, at which point you probably do want to create them dynamically.
Just make sure you destroy them, too, when they're done.

Matt

new topic     » goto parent     » topic index » view message » categorize

Search



Quick Links

User menu

Not signed in.

Misc Menu