X-Git-Url: https://git.saurik.com/wxWidgets.git/blobdiff_plain/0d57be459406c2830f6abc9d99ae99166c6d133b..858f7d664166563a7725f3487249eed7f30e2f31:/include/wx/motif/statbox.h diff --git a/include/wx/motif/statbox.h b/include/wx/motif/statbox.h index 0cd45846a4..5ebf48dd4e 100644 --- a/include/wx/motif/statbox.h +++ b/include/wx/motif/statbox.h @@ -36,6 +36,7 @@ class WXDLLEXPORT wxStaticBox: public wxControl { Create(parent, id, label, pos, size, style, name); } + ~wxStaticBox(); bool Create(wxWindow *parent, wxWindowID id, const wxString& label, @@ -48,11 +49,16 @@ class WXDLLEXPORT wxStaticBox: public wxControl virtual void ProcessCommand(wxCommandEvent& WXUNUSED(event)) {}; void SetSize(int x, int y, int width, int height, int sizeFlags = wxSIZE_AUTO); + void SetSize(const wxRect& rect, int sizeFlags = wxSIZE_AUTO) + { wxWindow::SetSize(rect, sizeFlags); } + void SetSize(const wxSize& size) { wxWindow::SetSize(size); } + virtual void SetSize(int width, int height) { SetSize(-1, -1, width, height, wxSIZE_USE_EXISTING); } + void SetLabel(const wxString& label); wxString GetLabel() const; // Implementation - virtual void ChangeFont(); + virtual void ChangeFont(bool keepOriginalSize = TRUE); virtual void ChangeBackgroundColour(); virtual void ChangeForegroundColour(); WXWidget GetTopWidget() const { return m_formWidget; }