long style = 0,
const wxString& name = wxPanelNameStr );
+ virtual void SendSizeEvent(int flags = 0);
+
// implement base class pure virtuals
virtual void SetLabel( const wxString& label );
virtual wxString GetLabel() const;
if ( doResize )
{
MacRepositionScrollBars() ;
- MacOnInternalSize();
- wxSize size(actualWidth, actualHeight);
- wxSizeEvent event(size, m_windowId);
- event.SetEventObject(this);
- HandleWindowEvent(event);
+ SendSizeEvent();
}
}
}
}
}
+void wxWindowMac::SendSizeEvent(int flags)
+{
+ MacOnInternalSize();
+ wxWindowBase::SendSizeEvent(flags);
+}
+
// set the size of the window: if the dimensions are positive, just use them,
// but if any of them is equal to -1, it means that we must find the value for
// it ourselves (unless sizeFlags contains wxSIZE_ALLOW_MINUS_ONE flag, in
if (sizeFlags & wxSIZE_FORCE_EVENT)
{
- MacOnInternalSize();
- wxSizeEvent event( wxSize(width,height), GetId() );
- event.SetEventObject( this );
- HandleWindowEvent( event );
+ SendSizeEvent();
}
return;
MacRepositionScrollBars() ;
if ( triggerSizeEvent )
{
- MacOnInternalSize();
- wxSizeEvent event(GetSize(), m_windowId);
- event.SetEventObject(this);
- HandleWindowEvent(event);
+ SendSizeEvent();
}
#endif
}