]>
Commit | Line | Data |
---|---|---|
1 | ///////////////////////////////////////////////////////////////////////////// | |
2 | // Name: stattext.cpp | |
3 | // Purpose: wxStaticText | |
4 | // Author: AUTHOR | |
5 | // Modified by: | |
6 | // Created: 04/01/98 | |
7 | // RCS-ID: $Id$ | |
8 | // Copyright: (c) AUTHOR | |
9 | // Licence: wxWindows licence | |
10 | ///////////////////////////////////////////////////////////////////////////// | |
11 | ||
12 | #ifdef __GNUG__ | |
13 | #pragma implementation "stattext.h" | |
14 | #endif | |
15 | ||
16 | #include "wx/app.h" | |
17 | #include "wx/stattext.h" | |
18 | ||
19 | #include <stdio.h> | |
20 | ||
21 | IMPLEMENT_DYNAMIC_CLASS(wxStaticText, wxControl) | |
22 | ||
23 | bool wxStaticText::Create(wxWindow *parent, wxWindowID id, | |
24 | const wxString& label, | |
25 | const wxPoint& pos, | |
26 | const wxSize& size, | |
27 | long style, | |
28 | const wxString& name) | |
29 | { | |
30 | SetName(name); | |
31 | if (parent) parent->AddChild(this); | |
32 | ||
33 | SetBackgroundColour(parent->GetBackgroundColour()) ; | |
34 | SetForegroundColour(parent->GetForegroundColour()) ; | |
35 | ||
36 | if ( id == -1 ) | |
37 | m_windowId = (int)NewControlId(); | |
38 | else | |
39 | m_windowId = id; | |
40 | ||
41 | m_windowStyle = style; | |
42 | ||
43 | SetFont(parent->GetFont()); | |
44 | ||
45 | // TODO | |
46 | return FALSE; | |
47 | } | |
48 | ||
49 | void wxStaticText::SetSize(int x, int y, int width, int height, int sizeFlags) | |
50 | { | |
51 | // TODO | |
52 | } | |
53 | ||
54 | void wxStaticText::SetLabel(const wxString& label) | |
55 | { | |
56 | // TODO | |
57 | } | |
58 |