[wx-dev] [wxMac] Activation and deactivation of subwindows
Stefan Csomor
csomor at advancedconcepts.ch
Sun Mar 9 00:28:16 PST 2008
Hi Jeff
in earlier times I did an automatic refresh in this situation, but this lead
to unnecessary redraws for many user defined controls which actually didn¹t
change at all. But I should have left the notification all the same, for
non-native generic controls to opt-in, actually a refreshOnActivateChange¹
boolean would be most appropriate I guess. Right now I see that two classes
are hard wired in window.cpp
case kEventControlActivate :
case kEventControlDeactivate :
Best,
Stefan
On 09.03.08 01:50, "Jeff Tupper" <tupperlists at gmail.com> wrote:
> Does wxMac provide a way for wxWindow-derived objects to get activation events
> for the top-level window that they are children of?
>
> I need this as I have implemented a tree-like control (similar to wxTreeCtrl
> or wxTreeMultiCtrl). On the Mac, my control should grey its control surfaces
> out when the window it belongs to is not activated. (As an aside: it would be
> nice to have a clearer distinction between having focus and being active in
> wxWidgets for top-level windows. I've resorted to tracking activation events
> in a wxFrame-derived class.)
>
More information about the wx-dev
mailing list