1 /////////////////////////////////////////////////////////////////////////////
2 // Name: wx/generic/stattextg.h
3 // Purpose: wxGenericStaticText header
4 // Author: Marcin Wojdyr
7 // Copyright: Marcin Wojdyr
8 // Licence: wxWindows licence
9 /////////////////////////////////////////////////////////////////////////////
11 #ifndef _WX_GENERIC_STATTEXTG_H_
12 #define _WX_GENERIC_STATTEXTG_H_
14 #include "wx/stattext.h"
16 class WXDLLIMPEXP_CORE wxGenericStaticText
: public wxStaticTextBase
19 wxGenericStaticText() { }
21 wxGenericStaticText(wxWindow
*parent
,
23 const wxString
& label
,
24 const wxPoint
& pos
= wxDefaultPosition
,
25 const wxSize
& size
= wxDefaultSize
,
27 const wxString
& name
= wxStaticTextNameStr
)
29 Create(parent
, id
, label
, pos
, size
, style
, name
);
32 bool Create(wxWindow
*parent
,
34 const wxString
& label
,
35 const wxPoint
& pos
= wxDefaultPosition
,
36 const wxSize
& size
= wxDefaultSize
,
38 const wxString
& name
= wxStaticTextNameStr
);
41 virtual wxSize
DoGetBestClientSize() const;
42 virtual wxSize
DoGetBestSize() const;
44 virtual void SetLabel(const wxString
& label
);
45 virtual bool SetFont(const wxFont
&font
);
47 virtual wxString
DoGetLabel() const { return m_label
; }
48 virtual void DoSetLabel(const wxString
& label
);
51 void OnPaint(wxPaintEvent
& event
);
52 void DoSetSize(int x
, int y
, int width
, int height
, int sizeFlags
);
58 DECLARE_DYNAMIC_CLASS_NO_COPY(wxGenericStaticText
)
61 #endif // _WX_GENERIC_STATTEXTG_H_