Design question
Vadim Zeitlin
vadim at wxwidgets.org
Thu Nov 1 12:16:10 PDT 2007
On Wed, 31 Oct 2007 23:22:27 -0700 (PDT) CurieCat <linfk at 163.com> wrote:
C> A floating window is shown/hidden immediately according to the change of the
C> global bool variable. I tried the updateui event's show() method and it can
C> only hide the window. It seems the window doesn't generate a updateui event
C> when it's hidden. How do I solve this problem?
For a control I'd tell you to just handle the event in the parent but for
a (presumably top level) floating window I don't think you can do it with
the update UI events. So you'll need to show it manually or somehow arrange
to get these events sent to this window even when it's hidden as by default
wx optimizes them away.
Regards,
VZ
--
TT-Solutions: wxWidgets consultancy and technical support
http://www.tt-solutions.com/
More information about the wx-users
mailing list