[wx-dev] wxMac 2.8: IsShownOnScreen bug
Stefan Csomor
csomor at advancedconcepts.ch
Sat Jun 21 01:42:58 PDT 2008
Hi Julian
sorry, I cannot reproduce the problem, wxToolbar::IsShown is implemented
properly, so I don't see where things go wrong, are you using the native
toolbar in this example ?
Thanks,
Stefan
On 20.06.08 23:02, "Stefan Csomor" <csomor at advancedconcepts.ch> wrote:
> 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
>
>
>
> _______________________________________________
> wx-dev mailing list
> wx-dev at lists.wxwidgets.org
> http://lists.wxwidgets.org/mailman/listinfo/wx-dev
--
Advanced Concepts AG
Software-Engineering
Heldweg 10
CH-8475 Ossingen
Switzerland
phone:+41 52 245 0 245
fax:+41 52 245 0 246
http://www.advanced.ch
mailto:csomor at advanced.ch
More information about the wx-dev
mailing list