]> git.saurik.com Git - wxWidgets.git/blame - include/wx/mac/classic/stattext.h
Fix for drag object bug
[wxWidgets.git] / include / wx / mac / classic / stattext.h
CommitLineData
52479aef
SC
1/////////////////////////////////////////////////////////////////////////////
2// Name: stattext.h
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
65571936 9// Licence: wxWindows licence
52479aef
SC
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{
21 DECLARE_DYNAMIC_CLASS(wxStaticText)
22 public:
23 inline wxStaticText() : m_label() { }
24
25 inline wxStaticText(wxWindow *parent, 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, wxWindowID id,
36 const wxString& label,
37 const wxPoint& pos = wxDefaultPosition,
38 const wxSize& size = wxDefaultSize,
39 long style = 0,
40 const wxString& name = wxStaticTextNameStr);
41
42 // accessors
43 void SetLabel( const wxString &str ) ;
52479aef
SC
44
45 // operations
46 virtual void Command(wxCommandEvent& WXUNUSED(event)) {};
47 virtual void ProcessCommand(wxCommandEvent& WXUNUSED(event)) {};
48 // events
49 void DrawParagraph(wxDC &dc, wxString paragraph, int &y);
50 void OnPaint( wxPaintEvent &event ) ;
51 void OnDraw( wxDC &dc ) ;
52 virtual wxSize DoGetBestSize() const ;
53 virtual bool AcceptsFocus() const { return FALSE; }
54 private :
55 wxString m_label ;
56
57 DECLARE_EVENT_TABLE()
58};
59
60#endif
61 // _WX_STATTEXT_H_