]>
git.saurik.com Git - wxWidgets.git/blob - src/gtk1/statbox.cpp
1 /////////////////////////////////////////////////////////////////////////////
4 // Author: Robert Roebling
7 // Copyright: (c) 1998 Robert Roebling, Julian Smart and Markus Holzem
8 // Licence: wxWindows licence
9 /////////////////////////////////////////////////////////////////////////////
12 #pragma implementation "statbox.h"
15 #include "wx/statbox.h"
17 //-----------------------------------------------------------------------------
19 //-----------------------------------------------------------------------------
21 IMPLEMENT_DYNAMIC_CLASS(wxStaticBox
,wxControl
)
23 wxStaticBox::wxStaticBox(void)
27 wxStaticBox::wxStaticBox( wxWindow
*parent
, wxWindowID id
, const wxString
&label
,
28 const wxPoint
&pos
, const wxSize
&size
,
29 long style
, const wxString
&name
)
31 Create( parent
, id
, label
, pos
, size
, style
, name
);
34 bool wxStaticBox::Create( wxWindow
*parent
, wxWindowID id
, const wxString
&label
,
35 const wxPoint
&pos
, const wxSize
&size
,
36 long style
, const wxString
&name
)
40 PreCreation( parent
, id
, pos
, size
, style
, name
);
42 m_widget
= gtk_frame_new(m_label
);
53 void wxStaticBox::SetLabel( const wxString
&label
)
55 wxControl::SetLabel( label
);
56 GtkFrame
*frame
= GTK_FRAME( m_widget
);
57 gtk_frame_set_label( frame
, GetLabel() );