]>
git.saurik.com Git - wxWidgets.git/blob - src/gtk1/statline.cpp
1 /////////////////////////////////////////////////////////////////////////////
4 // Author: Robert Roebling
6 // Copyright: (c) 1998 Robert Roebling
7 // Licence: wxWindows licence
8 /////////////////////////////////////////////////////////////////////////////
10 #if defined(__GNUG__) && !defined(NO_GCC_PRAGMA)
11 #pragma implementation "statline.h"
14 // For compilers that support precompilation, includes "wx.h".
15 #include "wx/wxprec.h"
17 #include "wx/statline.h"
24 //-----------------------------------------------------------------------------
26 //-----------------------------------------------------------------------------
28 IMPLEMENT_DYNAMIC_CLASS(wxStaticLine
, wxControl
)
30 wxStaticLine::wxStaticLine()
34 wxStaticLine::wxStaticLine( wxWindow
*parent
, wxWindowID id
,
35 const wxPoint
&pos
, const wxSize
&size
,
36 long style
, const wxString
&name
)
38 Create( parent
, id
, pos
, size
, style
, name
);
41 bool wxStaticLine::Create( wxWindow
*parent
, wxWindowID id
,
42 const wxPoint
&pos
, const wxSize
&size
,
43 long style
, const wxString
&name
)
47 if (!PreCreation( parent
, pos
, size
) ||
48 !CreateBase( parent
, id
, pos
, size
, style
, wxDefaultValidator
, name
))
50 wxFAIL_MSG( wxT("wxStaticLine creation failed") );
56 m_widget
= gtk_vseparator_new();
59 wxSize
new_size( size
);
66 m_widget
= gtk_hseparator_new();
69 wxSize
new_size( size
);
75 m_parent
->DoAddChild( this );
84 wxStaticLine::GetClassDefaultAttributes(wxWindowVariant
WXUNUSED(variant
))
86 return GetDefaultAttributesFromGTKWidget(gtk_vseparator_new
);