]> git.saurik.com Git - wxWidgets.git/blob - src/palmos/stattext.cpp
math.h/PI integration
[wxWidgets.git] / src / palmos / stattext.cpp
1 /////////////////////////////////////////////////////////////////////////////
2 // Name: src/palmos/stattext.cpp
3 // Purpose: wxStaticText
4 // Author: William Osborne
5 // Modified by:
6 // Created: 10/13/04
7 // RCS-ID: $Id:
8 // Copyright: (c) William Osborne
9 // Licence: wxWindows licence
10 /////////////////////////////////////////////////////////////////////////////
11
12 #if defined(__GNUG__) && !defined(NO_GCC_PRAGMA)
13 #pragma implementation "stattext.h"
14 #endif
15
16 // For compilers that support precompilation, includes "wx.h".
17 #include "wx/wxprec.h"
18
19 #ifdef __BORLANDC__
20 #pragma hdrstop
21 #endif
22
23 #if wxUSE_STATTEXT
24
25 #ifndef WX_PRECOMP
26 #include "wx/event.h"
27 #include "wx/app.h"
28 #include "wx/brush.h"
29 #endif
30
31 #include "wx/stattext.h"
32 #include "wx/palmos/private.h"
33
34 #if wxUSE_EXTENDED_RTTI
35 WX_DEFINE_FLAGS( wxStaticTextStyle )
36
37 wxBEGIN_FLAGS( wxStaticTextStyle )
38 // new style border flags, we put them first to
39 // use them for streaming out
40 wxFLAGS_MEMBER(wxBORDER_SIMPLE)
41 wxFLAGS_MEMBER(wxBORDER_SUNKEN)
42 wxFLAGS_MEMBER(wxBORDER_DOUBLE)
43 wxFLAGS_MEMBER(wxBORDER_RAISED)
44 wxFLAGS_MEMBER(wxBORDER_STATIC)
45 wxFLAGS_MEMBER(wxBORDER_NONE)
46
47 // old style border flags
48 wxFLAGS_MEMBER(wxSIMPLE_BORDER)
49 wxFLAGS_MEMBER(wxSUNKEN_BORDER)
50 wxFLAGS_MEMBER(wxDOUBLE_BORDER)
51 wxFLAGS_MEMBER(wxRAISED_BORDER)
52 wxFLAGS_MEMBER(wxSTATIC_BORDER)
53 wxFLAGS_MEMBER(wxBORDER)
54
55 // standard window styles
56 wxFLAGS_MEMBER(wxTAB_TRAVERSAL)
57 wxFLAGS_MEMBER(wxCLIP_CHILDREN)
58 wxFLAGS_MEMBER(wxTRANSPARENT_WINDOW)
59 wxFLAGS_MEMBER(wxWANTS_CHARS)
60 wxFLAGS_MEMBER(wxFULL_REPAINT_ON_RESIZE)
61 wxFLAGS_MEMBER(wxALWAYS_SHOW_SB )
62 wxFLAGS_MEMBER(wxVSCROLL)
63 wxFLAGS_MEMBER(wxHSCROLL)
64
65 wxFLAGS_MEMBER(wxST_NO_AUTORESIZE)
66 wxFLAGS_MEMBER(wxALIGN_LEFT)
67 wxFLAGS_MEMBER(wxALIGN_RIGHT)
68 wxFLAGS_MEMBER(wxALIGN_CENTRE)
69
70 wxEND_FLAGS( wxStaticTextStyle )
71
72 IMPLEMENT_DYNAMIC_CLASS_XTI(wxStaticText, wxControl,"wx/stattext.h")
73
74 wxBEGIN_PROPERTIES_TABLE(wxStaticText)
75 wxPROPERTY( Label,wxString, SetLabel, GetLabel, wxString() , 0 /*flags*/ , wxT("Helpstring") , wxT("group"))
76 wxPROPERTY_FLAGS( WindowStyle , wxStaticTextStyle , long , SetWindowStyleFlag , GetWindowStyleFlag , EMPTY_MACROVALUE, 0 /*flags*/ , wxT("Helpstring") , wxT("group")) // style
77 wxEND_PROPERTIES_TABLE()
78
79 wxBEGIN_HANDLERS_TABLE(wxStaticText)
80 wxEND_HANDLERS_TABLE()
81
82 wxCONSTRUCTOR_6( wxStaticText , wxWindow* , Parent , wxWindowID , Id , wxString , Label , wxPoint , Position , wxSize , Size , long , WindowStyle )
83 #else
84 IMPLEMENT_DYNAMIC_CLASS(wxStaticText, wxControl)
85 #endif
86
87 bool wxStaticText::Create(wxWindow *parent,
88 wxWindowID id,
89 const wxString& label,
90 const wxPoint& pos,
91 const wxSize& size,
92 long style,
93 const wxString& name)
94 {
95 return false;
96 }
97
98 wxBorder wxStaticText::GetDefaultBorder() const
99 {
100 return wxBORDER_NONE;
101 }
102
103 WXDWORD wxStaticText::MSWGetStyle(long style, WXDWORD *exstyle) const
104 {
105 return 0;
106 }
107
108 wxSize wxStaticText::DoGetBestSize() const
109 {
110 return wxSize(0,0);
111 }
112
113 void wxStaticText::DoSetSize(int x, int y, int w, int h, int sizeFlags)
114 {
115 }
116
117 void wxStaticText::SetLabel(const wxString& label)
118 {
119 }
120
121
122 bool wxStaticText::SetFont(const wxFont& font)
123 {
124 return false;
125 }
126
127 #endif // wxUSE_STATTEXT