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

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

Hi Dan,
unfortunately, Win32Lib always assumes that modal windows are visible. I can
achieve what you want for a non-modal window

----------------------------
object VOID

  openWindow(myWin, #08000000)  --a kludge to open it "hidden"

  VOID = c_func( xShowWindow, { getHandle(myWin), SW_SHOWNORMAL } ) -- to
view it.

  VOID = c_func( xShowWindow, { getHandle(myWin), SW_HIDE } ) -- to hide it
again.

-- This only works in 0.53 because getHandle is global from that version.

----------------------------

A number of changes will have to occur to allow initially hidden modal
windows. The main one being that modal windows, by definition always have
focus; but if its hidden, it shouldn't have focus.

Currently, Win32lib always makes sure that the latest open modal window
always has effective focus. It wouldn't be very friendly to have a hidden
window that has the focus!

I think this is so, but maybe David or Matt can confirm or deny.
----
cheers
Derek.

----- Original Message -----
From: "Dan B Moyer" <DANMOYER at PRODIGY.NET>
To: <EUPHORIA at LISTSERV.MUOHIO.EDU>
Sent: Tuesday, September 26, 2000 4:09 PM
Subject: Win32Libv50: How make window invisible (initially?)?


> 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

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

Search



Quick Links

User menu

Not signed in.

Misc Menu