[wx-dev] wxMac 2.8: IsShownOnScreen bug

Stefan Csomor csomor at advancedconcepts.ch
Fri Jun 20 14:02:45 PDT 2008


Hi Julian

> Sorry, this is a show-stopper for 2.8.8.
> 
> The new implementation of IsShownOnScreen doesn't seem to work for the
> main toolbar of an app on Mac.
> 
> If you add this to OnAbout in the toolbar sample:
> 
> if (GetToolBar()->IsShownOnScreen())
>     wxMessageBox(wxT("Shown"));
> else
>     wxMessageBox(wxT("Not shown"));
> 
> you get Not shown - it's failing in m_peer->IsVisible() I think.
> 
> This means UI update events fail to work with the main toolbar since it
> tests IsShownOnScreen.
> 
> Thanks for any enlightenment... BTW I'm compiling with CG = 0 if it
> makes any difference. I'm also testing this on 2.8.7 with various
> updates from 2.8.8 so I need to check on 2.8 SVN.

yes, you hit it on the head, the m_peer is the 'non-native' variant which is
hidden for the native toolbar

I'll check in a fix tomorrow morning

Thanks,

Stefan





More information about the wx-dev mailing list