]>
Commit | Line | Data |
---|---|---|
2ecf902b WS |
1 | ///////////////////////////////////////////////////////////////////////////// |
2 | // Name: stattext.h | |
3 | // Purpose: wxStaticText base header | |
99d80019 | 4 | // Author: Julian Smart |
2ecf902b WS |
5 | // Modified by: |
6 | // Created: | |
99d80019 | 7 | // Copyright: (c) Julian Smart |
2ecf902b WS |
8 | // RCS-ID: $Id$ |
9 | // Licence: wxWindows licence | |
10 | ///////////////////////////////////////////////////////////////////////////// | |
11 | ||
34138703 JS |
12 | #ifndef _WX_STATTEXT_H_BASE_ |
13 | #define _WX_STATTEXT_H_BASE_ | |
c801d85f | 14 | |
2ecf902b WS |
15 | #include "wx/defs.h" |
16 | ||
1e6feb95 VZ |
17 | #if wxUSE_STATTEXT |
18 | ||
19 | #include "wx/control.h" | |
20 | ||
63ec432b | 21 | extern WXDLLEXPORT_DATA(const wxChar) wxStaticTextNameStr[]; |
1e6feb95 VZ |
22 | |
23 | class WXDLLEXPORT wxStaticTextBase : public wxControl | |
24 | { | |
25 | public: | |
fc7a2a60 VZ |
26 | wxStaticTextBase() { } |
27 | ||
dec48aa5 VZ |
28 | // in wxGTK wxStaticText doesn't derive from wxStaticTextBase so we have to |
29 | // declare this function directly in gtk header | |
a351409e | 30 | #if !defined(__WXGTK__) || defined(__WXUNIVERSAL__) |
5d1b4919 VZ |
31 | // wrap the text of the control so that no line is longer than the given |
32 | // width (if possible: this function won't break words) | |
33 | // | |
34 | // NB: implemented in dlgcmn.cpp for now | |
35 | void Wrap(int width); | |
a351409e | 36 | #endif // ! native __WXGTK__ |
5d1b4919 | 37 | |
bd507486 RD |
38 | // overriden base virtuals |
39 | virtual bool AcceptsFocus() const { return false; } | |
7c7a653b | 40 | virtual bool HasTransparentBackground() { return true; } |
fc7a2a60 VZ |
41 | |
42 | private: | |
43 | DECLARE_NO_COPY_CLASS(wxStaticTextBase) | |
1e6feb95 VZ |
44 | }; |
45 | ||
46 | #if defined(__WXUNIVERSAL__) | |
47 | #include "wx/univ/stattext.h" | |
48 | #elif defined(__WXMSW__) | |
49 | #include "wx/msw/stattext.h" | |
2049ba38 | 50 | #elif defined(__WXMOTIF__) |
1e6feb95 | 51 | #include "wx/motif/stattext.h" |
2049ba38 | 52 | #elif defined(__WXGTK__) |
1e6feb95 | 53 | #include "wx/gtk/stattext.h" |
34138703 | 54 | #elif defined(__WXMAC__) |
1e6feb95 | 55 | #include "wx/mac/stattext.h" |
e64df9bc DE |
56 | #elif defined(__WXCOCOA__) |
57 | #include "wx/cocoa/stattext.h" | |
1777b9bb | 58 | #elif defined(__WXPM__) |
1e6feb95 | 59 | #include "wx/os2/stattext.h" |
a152561c WS |
60 | #elif defined(__WXPALMOS__) |
61 | #include "wx/palmos/stattext.h" | |
c801d85f KB |
62 | #endif |
63 | ||
1e6feb95 VZ |
64 | #endif // wxUSE_STATTEXT |
65 | ||
c801d85f | 66 | #endif |
34138703 | 67 | // _WX_STATTEXT_H_BASE_ |