1 /////////////////////////////////////////////////////////////////////////////
3 // Purpose: wxStaticText base header
4 // Author: Julian Smart
7 // Copyright: (c) Julian Smart
9 // Licence: wxWindows licence
10 /////////////////////////////////////////////////////////////////////////////
12 #ifndef _WX_STATTEXT_H_BASE_
13 #define _WX_STATTEXT_H_BASE_
19 #include "wx/control.h"
21 extern WXDLLEXPORT_DATA(const wxChar
*) wxStaticTextNameStr
;
23 class WXDLLEXPORT wxStaticTextBase
: public wxControl
26 wxStaticTextBase() { }
28 // in wxGTK wxStaticText doesn't derive from wxStaticTextBase so we have to
29 // declare this function directly in gtk header
30 #if !defined(__WXGTK__) || defined(__WXUNIVERSAL__)
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)
34 // NB: implemented in dlgcmn.cpp for now
36 #endif // ! native __WXGTK__
38 // overriden base virtuals
39 virtual bool AcceptsFocus() const { return false; }
40 virtual bool HasTransparentBackground() { return true; }
43 DECLARE_NO_COPY_CLASS(wxStaticTextBase
)
46 #if defined(__WXUNIVERSAL__)
47 #include "wx/univ/stattext.h"
48 #elif defined(__WXMSW__)
49 #include "wx/msw/stattext.h"
50 #elif defined(__WXMOTIF__)
51 #include "wx/motif/stattext.h"
52 #elif defined(__WXGTK__)
53 #include "wx/gtk/stattext.h"
54 #elif defined(__WXMAC__)
55 #include "wx/mac/stattext.h"
56 #elif defined(__WXCOCOA__)
57 #include "wx/cocoa/stattext.h"
58 #elif defined(__WXPM__)
59 #include "wx/os2/stattext.h"
60 #elif defined(__WXPALMOS__)
61 #include "wx/palmos/stattext.h"
64 #endif // wxUSE_STATTEXT
67 // _WX_STATTEXT_H_BASE_