]> git.saurik.com Git - wxWidgets.git/blame - include/wx/stattext.h
added newsince note
[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
16cba29d 21extern WXDLLEXPORT_DATA(const wxChar*) wxStaticTextNameStr;
1e6feb95
VZ
22
23class WXDLLEXPORT wxStaticTextBase : public wxControl
24{
25public:
fc7a2a60
VZ
26 wxStaticTextBase() { }
27
5d1b4919
VZ
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
bd507486
RD
34 // overriden base virtuals
35 virtual bool AcceptsFocus() const { return false; }
7c7a653b 36 virtual bool HasTransparentBackground() { return true; }
fc7a2a60
VZ
37
38private:
39 DECLARE_NO_COPY_CLASS(wxStaticTextBase)
1e6feb95
VZ
40};
41
42#if defined(__WXUNIVERSAL__)
43 #include "wx/univ/stattext.h"
44#elif defined(__WXMSW__)
45 #include "wx/msw/stattext.h"
2049ba38 46#elif defined(__WXMOTIF__)
1e6feb95 47 #include "wx/motif/stattext.h"
2049ba38 48#elif defined(__WXGTK__)
1e6feb95 49 #include "wx/gtk/stattext.h"
34138703 50#elif defined(__WXMAC__)
1e6feb95 51 #include "wx/mac/stattext.h"
e64df9bc
DE
52#elif defined(__WXCOCOA__)
53 #include "wx/cocoa/stattext.h"
1777b9bb 54#elif defined(__WXPM__)
1e6feb95 55 #include "wx/os2/stattext.h"
a152561c
WS
56#elif defined(__WXPALMOS__)
57 #include "wx/palmos/stattext.h"
c801d85f
KB
58#endif
59
1e6feb95
VZ
60#endif // wxUSE_STATTEXT
61
c801d85f 62#endif
34138703 63 // _WX_STATTEXT_H_BASE_