DECLARE_DYNAMIC_CLASS(wxStaticBox)
public:
- inline wxStaticBox() {}
+ wxStaticBox();
inline wxStaticBox(wxWindow *parent, wxWindowID id,
const wxString& label,
const wxPoint& pos = wxDefaultPosition,
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