]>
Commit | Line | Data |
---|---|---|
0dbd6262 SC |
1 | ///////////////////////////////////////////////////////////////////////////// |
2 | // Name: stattext.h | |
3 | // Purpose: wxStaticText class | |
4 | // Author: AUTHOR | |
5 | // Modified by: | |
6 | // Created: ??/??/98 | |
7 | // RCS-ID: $Id$ | |
8 | // Copyright: (c) AUTHOR | |
9 | // Licence: wxWindows licence | |
10 | ///////////////////////////////////////////////////////////////////////////// | |
11 | ||
12 | #ifndef _WX_STATTEXT_H_ | |
13 | #define _WX_STATTEXT_H_ | |
14 | ||
15 | #ifdef __GNUG__ | |
16 | #pragma interface "stattext.h" | |
17 | #endif | |
18 | ||
505af178 | 19 | class WXDLLEXPORT wxStaticText: public wxStaticTextBase |
0dbd6262 SC |
20 | { |
21 | DECLARE_DYNAMIC_CLASS(wxStaticText) | |
22 | public: | |
23 | inline wxStaticText() { } | |
24 | ||
25 | inline wxStaticText(wxWindow *parent, wxWindowID id, | |
26 | const wxString& label, | |
27 | const wxPoint& pos = wxDefaultPosition, | |
28 | const wxSize& size = wxDefaultSize, | |
29 | long style = 0, | |
30 | const wxString& name = wxStaticTextNameStr) | |
31 | { | |
32 | Create(parent, id, label, pos, size, style, name); | |
33 | } | |
34 | ||
35 | bool Create(wxWindow *parent, wxWindowID id, | |
36 | const wxString& label, | |
37 | const wxPoint& pos = wxDefaultPosition, | |
38 | const wxSize& size = wxDefaultSize, | |
39 | long style = 0, | |
40 | const wxString& name = wxStaticTextNameStr); | |
41 | ||
42 | // accessors | |
05adb9d2 | 43 | void SetLabel( const wxString &str ) ; |
0dbd6262 SC |
44 | // operations |
45 | virtual void Command(wxCommandEvent& WXUNUSED(event)) {}; | |
46 | virtual void ProcessCommand(wxCommandEvent& WXUNUSED(event)) {}; | |
8208e181 | 47 | // events |
0c05747a | 48 | void DrawParagraph(wxDC &dc, wxString paragraph); |
8208e181 | 49 | void OnPaint( wxPaintEvent &event ) ; |
05adb9d2 | 50 | void OnDraw( wxDC &dc ) ; |
8208e181 | 51 | wxSize DoGetBestSize() const ; |
05adb9d2 | 52 | virtual bool AcceptsFocus() const { return FALSE; } |
8208e181 SC |
53 | private : |
54 | wxString m_label ; | |
55 | ||
56 | DECLARE_EVENT_TABLE() | |
0dbd6262 SC |
57 | }; |
58 | ||
59 | #endif | |
60 | // _WX_STATTEXT_H_ |