]>
git.saurik.com Git - wxWidgets.git/blob - src/palmos/stattext.cpp
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
8 // Copyright: (c) William Osborne, Wlodzimierz Skiba
9 // Licence: wxWindows licence
10 /////////////////////////////////////////////////////////////////////////////
12 // For compilers that support precompilation, includes "wx.h".
13 #include "wx/wxprec.h"
21 #include "wx/stattext.h"
31 bool wxStaticText::Create(wxWindow
*parent
,
33 const wxString
& label
,
39 if(!wxControl::Create(parent
, id
, pos
, size
, style
, wxDefaultValidator
, name
))
42 // note that wxALIGN_LEFT is equal to 0 so we shouldn't
43 // test for it using & operator
45 JustificationType align
= leftAlign
;
47 if ( style
& wxALIGN_CENTRE
)
49 else if ( style
& wxALIGN_RIGHT
)
52 return wxControl::PalmCreateField(label
, pos
, size
, false, false, align
);
55 wxBorder
wxStaticText::GetDefaultBorder() const
60 wxSize
wxStaticText::DoGetBestSize() const
65 bool wxStaticText::SetFont(const wxFont
& font
)
70 #endif // wxUSE_STATTEXT