statbox.h 1.5 KB

12345678910111213141516171819202122232425262728293031323334353637383940414243444546474849505152
  1. /////////////////////////////////////////////////////////////////////////////
  2. // Name: wx/osx/statbox.h
  3. // Purpose: wxStaticBox class
  4. // Author: Stefan Csomor
  5. // Modified by:
  6. // Created: 1998-01-01
  7. // Copyright: (c) Stefan Csomor
  8. // Licence: wxWindows licence
  9. /////////////////////////////////////////////////////////////////////////////
  10. #ifndef _WX_STATBOX_H_
  11. #define _WX_STATBOX_H_
  12. #include "wx/control.h"
  13. // Group box
  14. class WXDLLIMPEXP_CORE wxStaticBox: public wxControl
  15. {
  16. DECLARE_DYNAMIC_CLASS(wxStaticBox)
  17. public:
  18. inline wxStaticBox() {}
  19. inline wxStaticBox(wxWindow *parent, wxWindowID id,
  20. const wxString& label,
  21. const wxPoint& pos = wxDefaultPosition,
  22. const wxSize& size = wxDefaultSize,
  23. long style = 0,
  24. const wxString& name = wxStaticBoxNameStr)
  25. {
  26. Create(parent, id, label, pos, size, style, name);
  27. }
  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 void Command(wxCommandEvent& WXUNUSED(event)) {}
  35. virtual void ProcessCommand(wxCommandEvent& WXUNUSED(event)) {}
  36. virtual void GetBordersForSizer(int *borderTop, int *borderOther) const;
  37. virtual bool AcceptsFocus() const { return false; }
  38. // protect native font of box
  39. virtual bool SetFont( const wxFont &font );
  40. };
  41. #endif
  42. // _WX_STATBOX_H_