]> git.saurik.com Git - wxWidgets.git/blame - include/wx/palmos/stattext.h
adding OS level Window Menu by default
[wxWidgets.git] / include / wx / palmos / stattext.h
CommitLineData
ffecfa5a
JS
1/////////////////////////////////////////////////////////////////////////////
2// Name: wx/palmos/stattext.h
3// Purpose: wxStaticText class
e1d63b79 4// Author: William Osborne - minimal working wxPalmOS port
a152561c 5// Modified by: Wlodzimierz ABX Skiba - native wxStaticText implementation
ffecfa5a 6// Created: 10/13/04
e1d63b79 7// RCS-ID: $Id$
a152561c 8// Copyright: (c) William Osborne, Wlodzimierz Skiba
ffecfa5a
JS
9// Licence: wxWindows licence
10/////////////////////////////////////////////////////////////////////////////
11
12#ifndef _WX_STATTEXT_H_
13#define _WX_STATTEXT_H_
14
15#if defined(__GNUG__) && !defined(NO_GCC_PRAGMA)
16 #pragma interface "stattext.h"
17#endif
18
19class WXDLLEXPORT wxStaticText : public wxStaticTextBase
20{
21public:
22 wxStaticText() { }
23
24 wxStaticText(wxWindow *parent,
25 wxWindowID id,
26 const wxString& label,
27 const wxPoint& pos = wxDefaultPosition,
28 const wxSize& size = wxDefaultSize,
29 long style = 0,
30 const wxString& name = wxStaticTextNameStr)
31 {
32 Create(parent, id, label, pos, size, style, name);
33 }
34
35 bool Create(wxWindow *parent,
36 wxWindowID id,
37 const wxString& label,
38 const wxPoint& pos = wxDefaultPosition,
39 const wxSize& size = wxDefaultSize,
40 long style = 0,
41 const wxString& name = wxStaticTextNameStr);
42
43 // override some methods to resize the window properly
ffecfa5a
JS
44 virtual bool SetFont( const wxFont &font );
45
46protected:
47 // implement/override some base class virtuals
48 virtual wxBorder GetDefaultBorder() const;
ffecfa5a 49 virtual wxSize DoGetBestSize() const;
ffecfa5a
JS
50
51 DECLARE_DYNAMIC_CLASS_NO_COPY(wxStaticText)
52};
53
54#endif
55 // _WX_STATTEXT_H_