]> git.saurik.com Git - wxWidgets.git/blame - src/palmos/stattext.cpp
Derive wxWebViewEvent from wxNotifyEvent.
[wxWidgets.git] / src / palmos / stattext.cpp
CommitLineData
ffecfa5a
JS
1/////////////////////////////////////////////////////////////////////////////
2// Name: src/palmos/stattext.cpp
3// Purpose: wxStaticText
e2731512 4// Author: William Osborne - minimal working wxPalmOS port
a152561c 5// Modified by: Wlodzimierz ABX Skiba - native wxStaticText implementation
ffecfa5a 6// Created: 10/13/04
e2731512 7// RCS-ID: $Id$
a152561c 8// Copyright: (c) William Osborne, Wlodzimierz Skiba
ffecfa5a
JS
9// Licence: wxWindows licence
10/////////////////////////////////////////////////////////////////////////////
11
ffecfa5a
JS
12// For compilers that support precompilation, includes "wx.h".
13#include "wx/wxprec.h"
14
15#ifdef __BORLANDC__
d5da0ce7 16 #pragma hdrstop
ffecfa5a
JS
17#endif
18
19#if wxUSE_STATTEXT
20
d5da0ce7
WS
21#include "wx/stattext.h"
22
ffecfa5a 23#ifndef WX_PRECOMP
d5da0ce7
WS
24 #include "wx/event.h"
25 #include "wx/app.h"
26 #include "wx/brush.h"
ffecfa5a
JS
27#endif
28
20bc5ad8
WS
29#include <Field.h>
30
ffecfa5a
JS
31bool wxStaticText::Create(wxWindow *parent,
32 wxWindowID id,
33 const wxString& label,
34 const wxPoint& pos,
35 const wxSize& size,
36 long style,
37 const wxString& name)
38{
a152561c
WS
39 if(!wxControl::Create(parent, id, pos, size, style, wxDefaultValidator, name))
40 return false;
41
5b72333d
WS
42 // note that wxALIGN_LEFT is equal to 0 so we shouldn't
43 // test for it using & operator
44
45 JustificationType align = leftAlign;
46
47 if ( style & wxALIGN_CENTRE )
48 align = centerAlign ;
49 else if ( style & wxALIGN_RIGHT )
50 align = rightAlign;
51
52 return wxControl::PalmCreateField(label, pos, size, false, false, align);
ffecfa5a
JS
53}
54
55wxBorder wxStaticText::GetDefaultBorder() const
56{
57 return wxBORDER_NONE;
58}
59
ffecfa5a
JS
60wxSize wxStaticText::DoGetBestSize() const
61{
62 return wxSize(0,0);
63}
64
ffecfa5a
JS
65bool wxStaticText::SetFont(const wxFont& font)
66{
67 return false;
68}
69
70#endif // wxUSE_STATTEXT