]> git.saurik.com Git - wxWidgets.git/blob - src/gtk/statline.cpp
Added wxTextCtrl::IsEditable(), GetSelection() and
[wxWidgets.git] / src / gtk / statline.cpp
1 /////////////////////////////////////////////////////////////////////////////
2 // Name: statline.cpp
3 // Purpose:
4 // Author: Robert Roebling
5 // Id: $Id$
6 // Copyright: (c) 1998 Robert Roebling
7 // Licence: wxWindows licence
8 /////////////////////////////////////////////////////////////////////////////
9
10 #ifdef __GNUG__
11 #pragma implementation "statline.h"
12 #endif
13
14 #include "wx/statline.h"
15
16 #include "gdk/gdk.h"
17 #include "gtk/gtk.h"
18
19 //-----------------------------------------------------------------------------
20 // wxStaticLine
21 //-----------------------------------------------------------------------------
22
23 IMPLEMENT_DYNAMIC_CLASS(wxStaticLine,wxControl)
24
25 wxStaticLine::wxStaticLine(void)
26 {
27 }
28
29 wxStaticLine::wxStaticLine( wxWindow *parent, wxWindowID id,
30 const wxPoint &pos, const wxSize &size,
31 long style, const wxString &name )
32 {
33 Create( parent, id, pos, size, style, name );
34 }
35
36 bool wxStaticLine::Create( wxWindow *parent, wxWindowID id,
37 const wxPoint &pos, const wxSize &size,
38 long style, const wxString &name )
39 {
40 m_needParent = TRUE;
41
42 PreCreation( parent, id, pos, size, style, name );
43
44 if (style & wxVERTICAL)
45 m_widget = gtk_vseparator_new();
46 else
47 m_widget = gtk_hseparator_new();
48
49 m_parent->DoAddChild( this );
50
51 PostCreation();
52
53 Show( TRUE );
54
55 return TRUE;
56 }
57