using native fullscreen support and ShowEvent triggers

git-svn-id: https://svn.wxwidgets.org/svn/wx/wxWidgets/trunk@63620 c3d73ce0-8a6f-49c7-b76d-6d57e0e08775
This commit is contained in:
Stefan Csomor
2010-03-03 16:53:34 +00:00
parent 219665bbc6
commit 4cc16dcb8b
2 changed files with 62 additions and 49 deletions

View File

@@ -1061,10 +1061,16 @@ bool wxWindowMac::Show(bool show)
if ( m_peer )
m_peer->SetVisibility( show ) ;
wxShowEvent eventShow(GetId(), show);
eventShow.SetEventObject(this);
#ifdef __WXOSX_IPHONE__
// only when there's no native event support
if ( !IsTopLevel() )
#endif
{
wxShowEvent eventShow(GetId(), show);
eventShow.SetEventObject(this);
HandleWindowEvent(eventShow);
HandleWindowEvent(eventShow);
}
return true;
}