X-Git-Url: https://git.saurik.com/wxWidgets.git/blobdiff_plain/47bc1060127d86222768789575295254a710f5a6..858f7d664166563a7725f3487249eed7f30e2f31:/include/wx/motif/statbox.h diff --git a/include/wx/motif/statbox.h b/include/wx/motif/statbox.h index 288b185748..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,10 +49,18 @@ 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; - // Motif-specific +// Implementation + virtual void ChangeFont(bool keepOriginalSize = TRUE); + virtual void ChangeBackgroundColour(); + virtual void ChangeForegroundColour(); WXWidget GetTopWidget() const { return m_formWidget; } WXWidget GetLabelWidget() const { return m_labelWidget; }