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