statbox.h 1.5 KB

12345678910111213141516171819202122232425262728293031323334353637383940414243444546474849505152535455565758
  1. /////////////////////////////////////////////////////////////////////////////
  2. // Name: wx/motif/statbox.h
  3. // Purpose: wxStaticBox class
  4. // Author: Julian Smart
  5. // Modified by:
  6. // Created: 17/09/98
  7. // Copyright: (c) Julian Smart
  8. // Licence: wxWindows licence
  9. /////////////////////////////////////////////////////////////////////////////
  10. #ifndef _WX_STATBOX_H_
  11. #define _WX_STATBOX_H_
  12. // Group box
  13. class WXDLLIMPEXP_CORE wxStaticBox: public wxStaticBoxBase
  14. {
  15. DECLARE_DYNAMIC_CLASS(wxStaticBox)
  16. public:
  17. wxStaticBox();
  18. wxStaticBox(wxWindow *parent, wxWindowID id,
  19. const wxString& label,
  20. const wxPoint& pos = wxDefaultPosition,
  21. const wxSize& size = wxDefaultSize,
  22. long style = 0,
  23. const wxString& name = wxStaticBoxNameStr)
  24. {
  25. Create(parent, id, label, pos, size, style, name);
  26. }
  27. virtual ~wxStaticBox();
  28. bool Create(wxWindow *parent, wxWindowID id,
  29. const wxString& label,
  30. const wxPoint& pos = wxDefaultPosition,
  31. const wxSize& size = wxDefaultSize,
  32. long style = 0,
  33. const wxString& name = wxStaticBoxNameStr);
  34. virtual bool ProcessCommand(wxCommandEvent& WXUNUSED(event))
  35. {
  36. return false;
  37. }
  38. virtual WXWidget GetLabelWidget() const { return m_labelWidget; }
  39. virtual void SetLabel(const wxString& label);
  40. virtual void GetBordersForSizer(int *borderTop, int *borderOther) const;
  41. private:
  42. WXWidget m_labelWidget;
  43. private:
  44. DECLARE_EVENT_TABLE()
  45. };
  46. #endif
  47. // _WX_STATBOX_H_