]> git.saurik.com Git - wxWidgets.git/blame_incremental - src/palmos/stattext.cpp
Virtualize StartEditor and add implementations for the ports that can do it.
[wxWidgets.git] / src / palmos / stattext.cpp
... / ...
CommitLineData
1/////////////////////////////////////////////////////////////////////////////
2// Name: src/palmos/stattext.cpp
3// Purpose: wxStaticText
4// Author: William Osborne - minimal working wxPalmOS port
5// Modified by: Wlodzimierz ABX Skiba - native wxStaticText implementation
6// Created: 10/13/04
7// RCS-ID: $Id$
8// Copyright: (c) William Osborne, Wlodzimierz Skiba
9// Licence: wxWindows licence
10/////////////////////////////////////////////////////////////////////////////
11
12// For compilers that support precompilation, includes "wx.h".
13#include "wx/wxprec.h"
14
15#ifdef __BORLANDC__
16 #pragma hdrstop
17#endif
18
19#if wxUSE_STATTEXT
20
21#include "wx/stattext.h"
22
23#ifndef WX_PRECOMP
24 #include "wx/event.h"
25 #include "wx/app.h"
26 #include "wx/brush.h"
27#endif
28
29#include <Field.h>
30
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{
39 if(!wxControl::Create(parent, id, pos, size, style, wxDefaultValidator, name))
40 return false;
41
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);
53}
54
55wxBorder wxStaticText::GetDefaultBorder() const
56{
57 return wxBORDER_NONE;
58}
59
60wxSize wxStaticText::DoGetBestSize() const
61{
62 return wxSize(0,0);
63}
64
65bool wxStaticText::SetFont(const wxFont& font)
66{
67 return false;
68}
69
70#endif // wxUSE_STATTEXT