]> git.saurik.com Git - wxWidgets.git/blame - include/wx/osx/stattext.h
Added functionality for disabling the vertical scrollbar.
[wxWidgets.git] / include / wx / osx / stattext.h
CommitLineData
6762286d 1/////////////////////////////////////////////////////////////////////////////
80fdcdb9 2// Name: wx/osx/stattext.h
6762286d
SC
3// Purpose: wxStaticText class
4// Author: Stefan Csomor
5// Modified by:
6// Created: 1998-01-01
7// RCS-ID: $Id$
8// Copyright: (c) Stefan Csomor
9// Licence: wxWindows licence
10/////////////////////////////////////////////////////////////////////////////
11
12#ifndef _WX_STATTEXT_H_
13#define _WX_STATTEXT_H_
14
15class WXDLLIMPEXP_CORE wxStaticText: public wxStaticTextBase
16{
17public:
18 wxStaticText() { }
19
20 wxStaticText(wxWindow *parent, wxWindowID id,
21 const wxString& label,
22 const wxPoint& pos = wxDefaultPosition,
23 const wxSize& size = wxDefaultSize,
24 long style = 0,
25 const wxString& name = wxStaticTextNameStr)
26 {
27 Create(parent, id, label, pos, size, style, name);
28 }
29
30 bool Create(wxWindow *parent, wxWindowID id,
31 const wxString& label,
32 const wxPoint& pos = wxDefaultPosition,
33 const wxSize& size = wxDefaultSize,
34 long style = 0,
35 const wxString& name = wxStaticTextNameStr);
36
37 // accessors
38 void SetLabel( const wxString &str ) ;
39 bool SetFont( const wxFont &font );
40
8e6efd1f 41 virtual bool AcceptsFocus() const { return false; }
6762286d
SC
42
43protected :
44
45 virtual wxString DoGetLabel() const;
46 virtual void DoSetLabel(const wxString& str);
47
48 virtual wxSize DoGetBestSize() const ;
49
f672c969
VZ
50#if wxUSE_MARKUP && wxOSX_USE_COCOA
51 virtual bool DoSetLabelMarkup(const wxString& markup);
52#endif // wxUSE_MARKUP && wxOSX_USE_COCOA
53
6762286d
SC
54 DECLARE_DYNAMIC_CLASS_NO_COPY(wxStaticText)
55};
56
5c6eb3a8 57#endif
6762286d 58 // _WX_STATTEXT_H_