statbox.h 1.6 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051
  1. /////////////////////////////////////////////////////////////////////////////
  2. // Name: wx/gtk1/statbox.h
  3. // Purpose:
  4. // Author: Robert Roebling
  5. // Copyright: (c) 1998 Robert Roebling
  6. // Licence: wxWindows licence
  7. /////////////////////////////////////////////////////////////////////////////
  8. #ifndef __GTKSTATICBOXH__
  9. #define __GTKSTATICBOXH__
  10. //-----------------------------------------------------------------------------
  11. // wxStaticBox
  12. //-----------------------------------------------------------------------------
  13. class WXDLLIMPEXP_CORE wxStaticBox : public wxStaticBoxBase
  14. {
  15. public:
  16. wxStaticBox();
  17. wxStaticBox( wxWindow *parent,
  18. 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. bool Create( wxWindow *parent,
  25. wxWindowID id,
  26. const wxString &label,
  27. const wxPoint &pos = wxDefaultPosition,
  28. const wxSize &size = wxDefaultSize,
  29. long style = 0,
  30. const wxString &name = wxStaticBoxNameStr );
  31. virtual void SetLabel( const wxString &label );
  32. static wxVisualAttributes
  33. GetClassDefaultAttributes(wxWindowVariant variant = wxWINDOW_VARIANT_NORMAL);
  34. // implementation
  35. virtual bool IsTransparentForMouse() const { return TRUE; }
  36. protected:
  37. void DoApplyWidgetStyle(GtkRcStyle *style);
  38. private:
  39. DECLARE_DYNAMIC_CLASS(wxStaticBox)
  40. };
  41. #endif // __GTKSTATICBOXH__