if ( m_tooltip )
m_tooltip->SetWindow(this);
+
+ if (m_peer)
+ m_peer->SetToolTip(tooltip);
}
#endif
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;
}
{
case wxBG_STYLE_ERASE:
case wxBG_STYLE_SYSTEM:
+ case wxBG_STYLE_COLOUR:
{
// for the toplevel window this really is the entire area for
// all the others only their client area, otherwise they might
Init();
m_isRootControl = isRootControl;
m_wxPeer = peer;
+ m_shouldSendEvents = true;
}
wxWidgetImpl::wxWidgetImpl()