]>
Commit | Line | Data |
---|---|---|
ee6b1d97 | 1 | ///////////////////////////////////////////////////////////////////////////// |
876cd6f7 | 2 | // Name: src/mac/carbon/statlmac.cpp |
ee6b1d97 SC |
3 | // Purpose: a generic wxStaticLine class |
4 | // Author: Vadim Zeitlin | |
5 | // Created: 28.06.99 | |
6 | // Version: $Id$ | |
7 | // Copyright: (c) 1998 Vadim Zeitlin | |
65571936 | 8 | // Licence: wxWindows licence |
ee6b1d97 SC |
9 | ///////////////////////////////////////////////////////////////////////////// |
10 | ||
11 | // ============================================================================ | |
12 | // declarations | |
13 | // ============================================================================ | |
14 | ||
15 | // ---------------------------------------------------------------------------- | |
16 | // headers | |
17 | // ---------------------------------------------------------------------------- | |
18 | ||
ee6b1d97 SC |
19 | // For compilers that support precompilation, includes "wx.h". |
20 | #include "wx/wxprec.h" | |
21 | ||
22 | #ifdef __BORLANDC__ | |
23 | #pragma hdrstop | |
24 | #endif | |
25 | ||
876cd6f7 WS |
26 | #if wxUSE_STATLINE |
27 | ||
ee6b1d97 | 28 | #include "wx/statline.h" |
876cd6f7 WS |
29 | |
30 | #ifndef WX_PRECOMP | |
31 | #include "wx/statbox.h" | |
32 | #endif | |
ee6b1d97 | 33 | |
d497dca4 | 34 | #include "wx/mac/uma.h" |
1d261710 | 35 | |
ee6b1d97 SC |
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 | { | |
876cd6f7 WS |
53 | m_macIsUserPane = false ; |
54 | ||
b45ed7a2 VZ |
55 | if ( !wxStaticLineBase::Create(parent, id, pos, size, |
56 | style, wxDefaultValidator, name) ) | |
57 | return false; | |
58 | ||
facd6764 | 59 | Rect bounds = wxMacGetBoundsForControl( this , pos , size ) ; |
b905d6cc | 60 | m_peer = new wxMacControl(this) ; |
876cd6f7 | 61 | verify_noerr(CreateSeparatorControl(MAC_WXHWND(parent->MacGetTopLevelWindowRef()),&bounds, m_peer->GetControlRefAddr() ) ) ; |
4c37f124 | 62 | |
facd6764 | 63 | MacPostControlCreate(pos,size) ; |
ee6b1d97 | 64 | |
876cd6f7 | 65 | return true; |
ee6b1d97 | 66 | } |
fa0c64d6 RN |
67 | |
68 | #endif //wxUSE_STATLINE |