]>
Commit | Line | Data |
---|---|---|
b0351fc9 RR |
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->AddChild( this ); | |
50 | ||
51 | (m_parent->m_insertCallback)( m_parent, this ); | |
52 | ||
53 | PostCreation(); | |
54 | ||
55 | Show( TRUE ); | |
56 | ||
57 | return TRUE; | |
58 | } | |
59 |