Non-focusing Show() method
Björn Schneider
brogon at palandor.net
Mon Nov 12 07:04:43 PST 2007
-----BEGIN PGP SIGNED MESSAGE-----
Hash: SHA1
Hi,
I have the following problem: I need to hide a window (wxFrame,
wxDialog, whatever toplevel-window) for most the time. At a specific
time it needs to pop-up, but non-interrupting. Which means, the current
window needs to keep its keyboard focus.
The notify-window needs to be on top when popping up (currently I use
the wxSTAY_ON_TOP flag), but not necessarily stay there.
I tried moving it out of the visible monitor area - but wxGTK/the window
manager prevents that (min. a 10x10 pixel area is still remaining), on
Windows I haven't testet it. Resizing it from (0,0) to normal doesn't
really work either.
An option I haven't explored would be using the shaped-style and make it
invisible while moving it as far away as possible.
Anyway, it seems quiet hack-y to me. Is there any option or »standard«
procedure to follow? It must not involve changing something within
wxWidgets itself, as I'm actually using the python bindings and the
script should keep running on standard Python/wxPython installations.
Thanks!
Björn Schneider
-----BEGIN PGP SIGNATURE-----
Version: GnuPG v1.4.7 (GNU/Linux)
Comment: Using GnuPG with Mozilla - http://enigmail.mozdev.org
iD8DBQFHOGuLZVWL59ohzDARAoB4AJ0cr8WZ3VDcV59m0qzhqCNlTf8V2QCeOcx5
nE74X+oGLoHgxHPGCJb24FM=
=CETu
-----END PGP SIGNATURE-----
More information about the wx-users
mailing list