X-Git-Url: https://git.saurik.com/wxWidgets.git/blobdiff_plain/9b6dbb09746f8f5ee0549a2ff39ae0ac4c725898..e487524e492809638b7e335937c41fd432458a54:/include/wx/motif/statbox.h diff --git a/include/wx/motif/statbox.h b/include/wx/motif/statbox.h index e16cd330d2..90069cea8e 100644 --- a/include/wx/motif/statbox.h +++ b/include/wx/motif/statbox.h @@ -26,7 +26,7 @@ class WXDLLEXPORT wxStaticBox: public wxControl DECLARE_DYNAMIC_CLASS(wxStaticBox) public: - inline wxStaticBox() {} + wxStaticBox(); inline wxStaticBox(wxWindow *parent, wxWindowID id, const wxString& label, const wxPoint& pos = wxDefaultPosition, @@ -48,9 +48,26 @@ 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); } + void SetLabel(const wxString& label); + wxString GetLabel() const; + +// 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; } DECLARE_EVENT_TABLE() + +protected: + // Motif-specific + WXWidget m_formWidget; + WXWidget m_labelWidget; }; #endif