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

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

new topic     » topic index » view message » categorize

Search



Quick Links

User menu

Not signed in.

Misc Menu