]>
git.saurik.com Git - wxWidgets.git/blob - src/gtk/statline.cpp
1 /////////////////////////////////////////////////////////////////////////////
4 // Author: Robert Roebling
6 // Copyright: (c) 1998 Robert Roebling
7 // Licence: wxWindows licence
8 /////////////////////////////////////////////////////////////////////////////
11 #pragma implementation "statline.h"
14 #include "wx/statline.h"
19 //-----------------------------------------------------------------------------
21 //-----------------------------------------------------------------------------
23 IMPLEMENT_DYNAMIC_CLASS(wxStaticLine
,wxControl
)
25 wxStaticLine::wxStaticLine(void)
29 wxStaticLine::wxStaticLine( wxWindow
*parent
, wxWindowID id
,
30 const wxPoint
&pos
, const wxSize
&size
,
31 long style
, const wxString
&name
)
33 Create( parent
, id
, pos
, size
, style
, name
);
36 bool wxStaticLine::Create( wxWindow
*parent
, wxWindowID id
,
37 const wxPoint
&pos
, const wxSize
&size
,
38 long style
, const wxString
&name
)
42 PreCreation( parent
, id
, pos
, size
, style
, name
);
44 if (style
& wxVERTICAL
)
45 m_widget
= gtk_vseparator_new();
47 m_widget
= gtk_hseparator_new();
49 m_parent
->DoAddChild( this );