]> git.saurik.com Git - wxWidgets.git/blob - include/wx/generic/stattextg.h
Correct spelling, now use Indices
[wxWidgets.git] / include / wx / generic / stattextg.h
1 /////////////////////////////////////////////////////////////////////////////
2 // Name: wx/generic/stattextg.h
3 // Purpose: wxGenericStaticText header
4 // Author: Marcin Wojdyr
5 // Created: 2008-06-26
6 // Id: $Id:$
7 // Copyright: Marcin Wojdyr
8 // Licence: wxWindows licence
9 /////////////////////////////////////////////////////////////////////////////
10
11 #ifndef _WX_GENERIC_STATTEXTG_H_
12 #define _WX_GENERIC_STATTEXTG_H_
13
14 #include "wx/stattext.h"
15
16 class WXDLLIMPEXP_CORE wxGenericStaticText : public wxStaticTextBase
17 {
18 public:
19 wxGenericStaticText() { }
20
21 wxGenericStaticText(wxWindow *parent,
22 wxWindowID id,
23 const wxString& label,
24 const wxPoint& pos = wxDefaultPosition,
25 const wxSize& size = wxDefaultSize,
26 long style = 0,
27 const wxString& name = wxStaticTextNameStr)
28 {
29 Create(parent, id, label, pos, size, style, name);
30 }
31
32 bool Create(wxWindow *parent,
33 wxWindowID id,
34 const wxString& label,
35 const wxPoint& pos = wxDefaultPosition,
36 const wxSize& size = wxDefaultSize,
37 long style = 0,
38 const wxString& name = wxStaticTextNameStr);
39
40
41 virtual wxSize DoGetBestClientSize() const;
42 virtual wxSize DoGetBestSize() const;
43
44 virtual void SetLabel(const wxString& label);
45 virtual bool SetFont(const wxFont &font);
46
47 virtual wxString DoGetLabel() const { return m_label; }
48 virtual void DoSetLabel(const wxString& label);
49
50 protected:
51 void OnPaint(wxPaintEvent& event);
52 void DoSetSize(int x, int y, int width, int height, int sizeFlags);
53
54 private:
55 wxString m_label;
56 int m_mnemonic;
57
58 DECLARE_DYNAMIC_CLASS_NO_COPY(wxGenericStaticText)
59 };
60
61 #endif // _WX_GENERIC_STATTEXTG_H_
62