]>
git.saurik.com Git - wxWidgets.git/blob - src/gtk1/statline.cpp
1 /////////////////////////////////////////////////////////////////////////////
2 // Name: src/gtk1/statline.cpp
4 // Author: Robert Roebling
5 // Copyright: (c) 1998 Robert Roebling
6 // Licence: wxWindows licence
7 /////////////////////////////////////////////////////////////////////////////
9 // For compilers that support precompilation, includes "wx.h".
10 #include "wx/wxprec.h"
12 #include "wx/statline.h"
19 //-----------------------------------------------------------------------------
21 //-----------------------------------------------------------------------------
23 wxStaticLine::wxStaticLine()
27 wxStaticLine::wxStaticLine( wxWindow
*parent
, wxWindowID id
,
28 const wxPoint
&pos
, const wxSize
&size
,
29 long style
, const wxString
&name
)
31 Create( parent
, id
, pos
, size
, style
, name
);
34 bool wxStaticLine::Create( wxWindow
*parent
, wxWindowID id
,
35 const wxPoint
&pos
, const wxSize
&size
,
36 long style
, const wxString
&name
)
40 if (!PreCreation( parent
, pos
, size
) ||
41 !CreateBase( parent
, id
, pos
, size
, style
, wxDefaultValidator
, name
))
43 wxFAIL_MSG( wxT("wxStaticLine creation failed") );
49 m_widget
= gtk_vseparator_new();
52 wxSize
new_size( size
);
59 m_widget
= gtk_hseparator_new();
62 wxSize
new_size( size
);
68 m_parent
->DoAddChild( this );
77 wxStaticLine::GetClassDefaultAttributes(wxWindowVariant
WXUNUSED(variant
))
79 return GetDefaultAttributesFromGTKWidget(gtk_vseparator_new
);