]> git.saurik.com Git - wxWidgets.git/blame - include/wx/stattext.h
Unicode compilation fix after last commit
[wxWidgets.git] / include / wx / stattext.h
CommitLineData
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 21extern WXDLLEXPORT_DATA(const wxChar) wxStaticTextNameStr[];
1e6feb95
VZ
22
23class WXDLLEXPORT wxStaticTextBase : public wxControl
24{
25public:
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
42private:
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"
1be7a35c 52#elif defined(__WXGTK20__)
1e6feb95 53 #include "wx/gtk/stattext.h"
1be7a35c
MR
54#elif defined(__WXGTK__)
55 #include "wx/gtk1/stattext.h"
34138703 56#elif defined(__WXMAC__)
1e6feb95 57 #include "wx/mac/stattext.h"
e64df9bc
DE
58#elif defined(__WXCOCOA__)
59 #include "wx/cocoa/stattext.h"
1777b9bb 60#elif defined(__WXPM__)
1e6feb95 61 #include "wx/os2/stattext.h"
a152561c
WS
62#elif defined(__WXPALMOS__)
63 #include "wx/palmos/stattext.h"
c801d85f
KB
64#endif
65
1e6feb95
VZ
66#endif // wxUSE_STATTEXT
67
c801d85f 68#endif
34138703 69 // _WX_STATTEXT_H_BASE_