1. Re: Win32LIb & Child Windows
- Posted by Warren Baker <wcbaker at HOME.COM>
Nov 04, 1998
-
Last edited Nov 05, 1998
>You are correct; everything *is* a window. But dialogs seem to be handled
>differently, and as far as I can figure (and I've quite often been wrong!),
>their modality is something special.
>
>I've got multiple windows running in Win32Lib now, as well as simulated
>modal windows. I'll post the code Real Soon Now, once I update the
>documentation and make sure I'm not adding new bugs.
>
>My simulated modality has a small bug - hopefully one that someone can help
>me figure out. When I get a WM_GETFOCUS event and there is a modal window,
I
>call SetFocus to focus on the modal window. The focus goes to the modal
>window, but *both* windows are lit as if they have focus. The visual cue is
>quite confusing. Other than that, it seems to work just fine.
>
>I'll try to figure it out before posting it, but I'm running out of ideas.
>
>-- David Cuny
Dialogs are special in that they receive messages and can be moved and
closed. . . Modal are a little more special in that they have more of a
"presence" -- I wonder if you can't simulate the modal dialog by use of
something like a thread. Can we do threads in Euphoria, or simulate them ?
Something along the lines of thread priority could be used, if threads could
be simulated. If you can block MESSAGES to everything else. . . that
might do it? Maybe??
--Warren