]>
Commit | Line | Data |
---|---|---|
c801d85f KB |
1 | ///////////////////////////////////////////////////////////////////////////// |
2 | // Name: stattext.h | |
3 | // Purpose: | |
4 | // Author: Robert Roebling | |
58614078 RR |
5 | // Id: $Id$ |
6 | // Copyright: (c) 1998 Robert Roebling | |
65571936 | 7 | // Licence: wxWindows licence |
c801d85f KB |
8 | ///////////////////////////////////////////////////////////////////////////// |
9 | ||
10 | ||
11 | #ifndef __GTKSTATICTEXTH__ | |
12 | #define __GTKSTATICTEXTH__ | |
13 | ||
12028905 | 14 | #if defined(__GNUG__) && !defined(NO_GCC_PRAGMA) |
c801d85f KB |
15 | #pragma interface |
16 | #endif | |
17 | ||
18 | #include "wx/defs.h" | |
19 | #include "wx/object.h" | |
20 | #include "wx/list.h" | |
21 | #include "wx/control.h" | |
22 | ||
23 | //----------------------------------------------------------------------------- | |
24 | // classes | |
25 | //----------------------------------------------------------------------------- | |
26 | ||
27 | class wxStaticText; | |
28 | ||
29 | //----------------------------------------------------------------------------- | |
30 | // global data | |
31 | //----------------------------------------------------------------------------- | |
32 | ||
c801d85f KB |
33 | //----------------------------------------------------------------------------- |
34 | // wxStaticText | |
35 | //----------------------------------------------------------------------------- | |
36 | ||
f68586e5 | 37 | class wxStaticText : public wxControl |
c801d85f | 38 | { |
f68586e5 | 39 | public: |
f68586e5 VZ |
40 | wxStaticText(); |
41 | wxStaticText(wxWindow *parent, | |
42 | wxWindowID id, | |
43 | const wxString &label, | |
44 | const wxPoint &pos = wxDefaultPosition, | |
45 | const wxSize &size = wxDefaultSize, | |
46 | long style = 0, | |
47 | const wxString &name = wxStaticTextNameStr ); | |
48 | ||
49 | bool Create(wxWindow *parent, | |
50 | wxWindowID id, | |
51 | const wxString &label, | |
52 | const wxPoint &pos = wxDefaultPosition, | |
53 | const wxSize &size = wxDefaultSize, | |
54 | long style = 0, | |
55 | const wxString &name = wxStaticTextNameStr ); | |
56 | ||
57 | wxString GetLabel() const; | |
c801d85f | 58 | void SetLabel( const wxString &label ); |
f68586e5 | 59 | |
fe161a26 RD |
60 | bool GetAdjustMinSizeFlag() const { return !HasFlag(wxST_NO_AUTORESIZE); } |
61 | ||
174b10af | 62 | bool SetForegroundColour( const wxColour& colour ); |
9d522606 RD |
63 | |
64 | static wxVisualAttributes | |
65 | GetClassDefaultAttributes(wxWindowVariant variant = wxWINDOW_VARIANT_NORMAL); | |
33720b2d | 66 | |
f68586e5 | 67 | // implementation |
33720b2d | 68 | // -------------- |
f68586e5 VZ |
69 | |
70 | protected: | |
33720b2d RR |
71 | virtual wxSize DoGetBestSize() const; |
72 | ||
f68586e5 | 73 | DECLARE_DYNAMIC_CLASS(wxStaticText) |
c801d85f KB |
74 | }; |
75 | ||
76 | #endif // __GTKSTATICTEXTH__ |