]>
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 /////////////////////////////////////////////////////////////////////////////
10 // For compilers that support precompilation, includes "wx.h".
11 #include "wx/wxprec.h"
13 #include "wx/statline.h"
20 //-----------------------------------------------------------------------------
22 //-----------------------------------------------------------------------------
24 IMPLEMENT_DYNAMIC_CLASS(wxStaticLine
, wxControl
)
26 wxStaticLine::wxStaticLine()
30 wxStaticLine::wxStaticLine( wxWindow
*parent
, wxWindowID id
,
31 const wxPoint
&pos
, const wxSize
&size
,
32 long style
, const wxString
&name
)
34 Create( parent
, id
, pos
, size
, style
, name
);
37 bool wxStaticLine::Create( wxWindow
*parent
, wxWindowID id
,
38 const wxPoint
&pos
, const wxSize
&size
,
39 long style
, const wxString
&name
)
43 if (!PreCreation( parent
, pos
, size
) ||
44 !CreateBase( parent
, id
, pos
, size
, style
, wxDefaultValidator
, name
))
46 wxFAIL_MSG( wxT("wxStaticLine creation failed") );
52 m_widget
= gtk_vseparator_new();
55 wxSize
new_size( size
);
62 m_widget
= gtk_hseparator_new();
65 wxSize
new_size( size
);
71 m_parent
->DoAddChild( this );
80 wxStaticLine::GetClassDefaultAttributes(wxWindowVariant
WXUNUSED(variant
))
82 return GetDefaultAttributesFromGTKWidget(gtk_vseparator_new
);