]> git.saurik.com Git - wxWidgets.git/blame - include/wx/gtk/stattext.h
1. fixed bug with MDI child frames changign state when parent frame was
[wxWidgets.git] / include / wx / gtk / stattext.h
CommitLineData
c801d85f
KB
1/////////////////////////////////////////////////////////////////////////////
2// Name: stattext.h
3// Purpose:
4// Author: Robert Roebling
58614078
RR
5// Id: $Id$
6// Copyright: (c) 1998 Robert Roebling
c801d85f
KB
7// Licence: wxWindows licence
8/////////////////////////////////////////////////////////////////////////////
9
10
11#ifndef __GTKSTATICTEXTH__
12#define __GTKSTATICTEXTH__
13
14#ifdef __GNUG__
15#pragma interface
16#endif
17
18#include "wx/defs.h"
19#include "wx/object.h"
20#include "wx/list.h"
21#include "wx/control.h"
22
23//-----------------------------------------------------------------------------
24// classes
25//-----------------------------------------------------------------------------
26
27class wxStaticText;
28
29//-----------------------------------------------------------------------------
30// global data
31//-----------------------------------------------------------------------------
32
c980c992 33extern const wxChar *wxStaticTextNameStr;
c801d85f
KB
34
35//-----------------------------------------------------------------------------
36// wxStaticText
37//-----------------------------------------------------------------------------
38
f68586e5 39class wxStaticText : public wxControl
c801d85f 40{
f68586e5 41public:
f68586e5
VZ
42 wxStaticText();
43 wxStaticText(wxWindow *parent,
44 wxWindowID id,
45 const wxString &label,
46 const wxPoint &pos = wxDefaultPosition,
47 const wxSize &size = wxDefaultSize,
48 long style = 0,
49 const wxString &name = wxStaticTextNameStr );
50
51 bool Create(wxWindow *parent,
52 wxWindowID id,
53 const wxString &label,
54 const wxPoint &pos = wxDefaultPosition,
55 const wxSize &size = wxDefaultSize,
56 long style = 0,
57 const wxString &name = wxStaticTextNameStr );
58
59 wxString GetLabel() const;
c801d85f 60 void SetLabel( const wxString &label );
f68586e5 61
33720b2d
RR
62 bool SetFont( const wxFont &font );
63
f68586e5 64 // implementation
33720b2d
RR
65 // --------------
66
58614078 67 void ApplyWidgetStyle();
f68586e5
VZ
68
69protected:
33720b2d
RR
70 virtual wxSize DoGetBestSize() const;
71
f68586e5 72 DECLARE_DYNAMIC_CLASS(wxStaticText)
c801d85f
KB
73};
74
75#endif // __GTKSTATICTEXTH__