Re: Win32Libv50: How make window invisible (initially?)? +

new topic     » topic index » view thread      » older message » newer message

------=_NextPart_000_0013_01C02774.CAA56360
        charset="iso-8859-1"

Brian,

Ok, I've attached a demo.  The basic problem is not fundamentally that I
want make the modal window invisible initially, but that I want to make a
substitute for a message box, which has to be responded to before anything
else can done in the program, and I thought it would be nice to center it in
a maximized window (in a general way, independent of the size of someone's
screen); but when I do center it, it "flickers" the *first* time it is
opened in the program, as it first opens in some non-centered place and is
then moved to a centered position.  (If you close it and then re-open it, it
doesn't flicker, apparently because when it is "closed", it is made
invisible, and doesn't get made visible until my "setVisible" true makes it
so, which is *after* it is centered.)

So I figured if I could make it invisible initially, until it was safely
moved to center, no one would ever see it flicker.

Maybe there is some set of "styles" which when or'd will give the
fundamental properties of a modal window, but *not* include "WS_VISIBLE"
that would work with "openWindow"?

Dan


----- Original Message -----
From: "Brian K. Broker" <bkb at CNW.COM>
To: <EUPHORIA at LISTSERV.MUOHIO.EDU>
Sent: Tuesday, September 26, 2000 3:02 AM
Subject: Re: Win32Libv50: How make window invisible (initially?)? + Win32Lib
dev request


> On Mon, 25 Sep 2000 22:09:54 -0700, Dan B Moyer wrote:
>
> >I'm having trouble making a window invisible.  I'm using Wolf's "center"
> >routine for a modal window, but the window "flickers" as it is first
opened
> >and then moved; not a big deal, but I'd rather it didn't.
> >
> >I tried putting setVisible false *before* I opened the modal window, & it
> >had no effect; then I put it *after* open but before center & then
> >setVisible true after center, & it still flickered from where it started
to
> >where it was moved (if I neglect to setVisible true, it ends up truly
> >invisible, but apparently too late to stop the flicker).
> >
> >I thought maybe there is some way to specify the window to be invisible
> >initially in the "create", but couldn't see how.
> >
> >Dan
>
> Dan,
>
> I'd have to see a demo to help you out here.  Otherwise, take a look at my
> attached 'centerwin.ew' demo.  It's a Win32Lib add-on for centering a
> window.  Let me know if you are seeing the same problem (or if I'm even
> understanding your problem).
>
> And to you Win32Lib devs:  it would be nice to see these routines
integrated
> into Win32Lib.  Currently, if I try to do this:
>
>   sequence client
>
>   client = getClientRect( Screen )
>
> I get a Win32Lib error.  If you check out my centerwin.ew, you could do
the
> following:
>
>   getClientRect( Screen ) = getWorkarea()
>
> You could also modify 'centerWindow( integer id )' to do the following:
>
>   if 'id' is a parent window, then center window in workarea (as it
> currently does)
>   elsif 'id' is a child window, then center window in parent (this would
be
> easy to do)
>
> -- Brian

------=_NextPart_000_0013_01C02774.CAA56360
        name="tcenter.exw"
Content-Transfer-Encoding: quoted-printable

new topic     » topic index » view thread      » older message » newer message

Search



Quick Links

User menu

Not signed in.

Misc Menu