]>
Commit | Line | Data |
---|---|---|
e53b3d16 | 1 | ///////////////////////////////////////////////////////////////////////////// |
80fdcdb9 | 2 | // Name: src/osx/statline_osx.cpp |
e53b3d16 SC |
3 | // Purpose: a generic wxStaticLine class |
4 | // Author: Vadim Zeitlin | |
5 | // Created: 28.06.99 | |
e53b3d16 SC |
6 | // Copyright: (c) 1998 Vadim Zeitlin |
7 | // Licence: wxWindows licence | |
8 | ///////////////////////////////////////////////////////////////////////////// | |
9 | ||
10 | // ============================================================================ | |
11 | // declarations | |
12 | // ============================================================================ | |
13 | ||
14 | // ---------------------------------------------------------------------------- | |
15 | // headers | |
16 | // ---------------------------------------------------------------------------- | |
17 | ||
18 | // For compilers that support precompilation, includes "wx.h". | |
19 | #include "wx/wxprec.h" | |
20 | ||
21 | #ifdef __BORLANDC__ | |
22 | #pragma hdrstop | |
23 | #endif | |
24 | ||
25 | #if wxUSE_STATLINE | |
26 | ||
27 | #include "wx/statline.h" | |
28 | ||
29 | #ifndef WX_PRECOMP | |
30 | #include "wx/statbox.h" | |
31 | #endif | |
32 | ||
33 | #include "wx/osx/private.h" | |
34 | ||
35 | // ============================================================================ | |
36 | // implementation | |
37 | // ============================================================================ | |
38 | ||
e53b3d16 SC |
39 | // ---------------------------------------------------------------------------- |
40 | // wxStaticLine | |
41 | // ---------------------------------------------------------------------------- | |
42 | ||
43 | bool wxStaticLine::Create( wxWindow *parent, | |
44 | wxWindowID id, | |
45 | const wxPoint &pos, | |
46 | const wxSize &size, | |
47 | long style, | |
48 | const wxString &name) | |
d15694e8 SC |
49 | { |
50 | DontCreatePeer(); | |
51 | ||
e53b3d16 SC |
52 | if ( !wxStaticLineBase::Create(parent, id, pos, size, |
53 | style, wxDefaultValidator, name) ) | |
54 | return false; | |
55 | ||
22756322 | 56 | SetPeer(wxWidgetImpl::CreateStaticLine( this, parent, id, pos, size, style, GetExtraStyle() )); |
e53b3d16 SC |
57 | |
58 | MacPostControlCreate(pos,size) ; | |
59 | ||
60 | return true; | |
61 | } | |
62 | ||
63 | #endif //wxUSE_STATLINE |