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