1. FW: [Win32Lib] How to keep a window from opening in onOpen

Brian wrote
> That's a good question at first glance and I don't think there is an
> answer to it.  However, it raises the question: Why would you prevent
> your window from being opened in your w32HOpen handler? (you should use
> setHandler() instead of onOpen for future compatibility)
>
> Why wouldn't you check before opening the window in the first place?

I would.  Like I said, the answer isn't critical; I'm just curious if
there's a way to keep a window from opening inside an w32HOpen handler.  (By
the way, I am using setHandler().)  If there isn't a way, that's OK with me.
I've just been looking around at the possible applications of returnValue(),
and since you can returnValue(True) in a w32HClose handler to keep a window
from closing, I thought that there might be a similar effect for w32HOpen.

Derek wrote:
<snip>
> I assume you are actually asking how to open a window but not make it
> visible. Opening a window is a LOT more than just rendering it on the
> screen.
>
> You could try in the onActivate event to "setVisible(theWindow, 0)"

I actually wasn't asking how to open a window without making it visible; but
thanks for the tip. smile

Andrew

P.S.  Derek, every time I learn a something more about Win32Lib, I
appreciate the hard work you have put into it even more.  I couldn't do so
much as open a window on my own without Win32Lib.  I'm thankful for every
day that I don't have to dig around in the API.  Thanks for all you do!

new topic     » topic index » view message » categorize

Search



Quick Links

User menu

Not signed in.

Misc Menu