How to disable subwindows when main window is disabled?
Volker Bartheld
dr_versaeg at freenet.de
Tue Dec 11 04:32:43 PST 2007
Hi Vadim!
> VB> Let's suppose I want to automatically disable (=grey) all subwindows when
> VB> the main window ist disabled.
> Disabling and greying is not the same. When the parent window is disabled,
> all its children are disabled as well, even if they're not greyed. We used
> to do the greying out by default but it turns out that this wasn't the
> correct thing to do according to the UI guidelines and so we don't do it
> any more.
Ah. OK. Understood.
> you can use
> wxWindow::GetChildren() to access it and grey out everything recursively.
OK. Sounds like a feasible idea. I could overload wxWindow::Enable() and
add some code there, right?
THX for your input!
Volker
--
mailto: V B A R T H E L D at G M X dot D E
More information about the wx-users
mailing list