[wx-dev] [wxMac] Activation and deactivation of subwindows
Stefan Csomor
csomor at advancedconcepts.ch
Sun Mar 9 07:57:33 PDT 2008
Hi Vadim
> SC> But I should have left the notification all the same, for
> SC> non-native generic controls to opt-in, actually a
> refreshOnActivateChange¹
> SC> boolean would be most appropriate I guess.
>
> I may be misinterpreting the subject of this discussion, but isn't this
> the same as MSW WM_ACTIVATE message and the corresponding wxActivateEvent?
> If such event is generated correctly, it's easy to redraw the currently
> focused control when the app gains/loses activation, wxUniv does it with
> all of its controls (although I've never tested if this works on Mac).
but wxActivateEvent is a toplevel window concept, isn't it ? it is also
triggered on mac, but on mac also most native controls look different if
their toplevel window is activated or not, not only the focused control.
That's why they all get a native activate/deactivate event, and this is
something I didn't wire neither to a wx event, nor to a callback, IMHO just
having a bool where you'd indicate whether you want to be refreshed in this
situation would probably be a clean and simple solution, as this never is
about behaviour, only about appearance.
Best,
Stefan
More information about the wx-dev
mailing list