]> git.saurik.com Git - wxWidgets.git/blob - include/wx/stattext.h
8b0c667eb12ee750fdb9b8cab0f87cd311e01843
[wxWidgets.git] / include / wx / stattext.h
1 /////////////////////////////////////////////////////////////////////////////
2 // Name: stattext.h
3 // Purpose: wxStaticText base header
4 // Author: Julian Smart
5 // Modified by:
6 // Created:
7 // Copyright: (c) Julian Smart
8 // RCS-ID: $Id$
9 // Licence: wxWindows licence
10 /////////////////////////////////////////////////////////////////////////////
11
12 #ifndef _WX_STATTEXT_H_BASE_
13 #define _WX_STATTEXT_H_BASE_
14
15 #include "wx/defs.h"
16
17 #if wxUSE_STATTEXT
18
19 #include "wx/control.h"
20
21 extern WXDLLEXPORT_DATA(const wxChar*) wxStaticTextNameStr;
22
23 class WXDLLEXPORT wxStaticTextBase : public wxControl
24 {
25 public:
26 wxStaticTextBase() { }
27
28 // wrap the text of the control so that no line is longer than the given
29 // width (if possible: this function won't break words)
30 //
31 // NB: implemented in dlgcmn.cpp for now
32 void Wrap(int width);
33
34 // overriden base virtuals
35 virtual bool AcceptsFocus() const { return false; }
36 virtual bool HasTransparentBackground() { return true; }
37
38 private:
39 DECLARE_NO_COPY_CLASS(wxStaticTextBase)
40 };
41
42 #if defined(__WXUNIVERSAL__)
43 #include "wx/univ/stattext.h"
44 #elif defined(__WXMSW__)
45 #include "wx/msw/stattext.h"
46 #elif defined(__WXMOTIF__)
47 #include "wx/motif/stattext.h"
48 #elif defined(__WXGTK__)
49 #include "wx/gtk/stattext.h"
50 #elif defined(__WXMAC__)
51 #include "wx/mac/stattext.h"
52 #elif defined(__WXCOCOA__)
53 #include "wx/cocoa/stattext.h"
54 #elif defined(__WXPM__)
55 #include "wx/os2/stattext.h"
56 #elif defined(__WXPALMOS__)
57 #include "wx/palmos/stattext.h"
58 #endif
59
60 #endif // wxUSE_STATTEXT
61
62 #endif
63 // _WX_STATTEXT_H_BASE_