if ( m_tooltip )
m_tooltip->SetWindow(this);
+
+ if (m_peer)
+ m_peer->SetToolTip(tooltip);
}
#endif
r.width =
r.height = 16 ;
- if ( 0 )
- {
- }
#if wxUSE_SCROLLBAR
- else if ( IsKindOf( CLASSINFO( wxScrollBar ) ) )
+ if ( IsKindOf( CLASSINFO( wxScrollBar ) ) )
{
r.height = 16 ;
}
+ else
#endif
#if wxUSE_SPINBTN
- else if ( IsKindOf( CLASSINFO( wxSpinButton ) ) )
+ if ( IsKindOf( CLASSINFO( wxSpinButton ) ) )
{
r.height = 24 ;
}
-#endif
else
+#endif
{
// return wxWindowBase::DoGetBestSize() ;
}
if ( m_peer )
m_peer->SetVisibility( show ) ;
+ wxShowEvent eventShow(GetId(), show);
+ eventShow.SetEventObject(this);
+
+ 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
break;
case wxBG_STYLE_PAINT:
+ case wxBG_STYLE_TRANSPARENT:
// nothing to do, user-defined EVT_PAINT handler will overwrite the
// entire window client area
break;
Init();
m_isRootControl = isRootControl;
m_wxPeer = peer;
+ m_shouldSendEvents = true;
}
wxWidgetImpl::wxWidgetImpl()