]>
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"
21 //-----------------------------------------------------------------------------
23 //-----------------------------------------------------------------------------
25 IMPLEMENT_DYNAMIC_CLASS(wxStaticLine
, wxControl
)
27 wxStaticLine::wxStaticLine()
31 wxStaticLine::wxStaticLine( wxWindow
*parent
, wxWindowID id
,
32 const wxPoint
&pos
, const wxSize
&size
,
33 long style
, const wxString
&name
)
35 Create( parent
, id
, pos
, size
, style
, name
);
38 bool wxStaticLine::Create( wxWindow
*parent
, wxWindowID id
,
39 const wxPoint
&pos
, const wxSize
&size
,
40 long style
, const wxString
&name
)
44 if (!PreCreation( parent
, pos
, size
) ||
45 !CreateBase( parent
, id
, pos
, size
, style
, wxDefaultValidator
, name
))
47 wxFAIL_MSG( T("wxStaticLine creation failed") );
53 m_widget
= gtk_vseparator_new();
56 wxSize
new_size( size
);
63 m_widget
= gtk_hseparator_new();
66 wxSize
new_size( size
);
72 m_parent
->DoAddChild( this );