]>
Commit | Line | Data |
---|---|---|
1 | ///////////////////////////////////////////////////////////////////////////// | |
2 | // Name: src/osx/carbon/statlmac.cpp | |
3 | // Purpose: a generic wxStaticLine class | |
4 | // Author: Vadim Zeitlin | |
5 | // Created: 28.06.99 | |
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 | ||
39 | wxWidgetImplType* wxWidgetImpl::CreateStaticLine( wxWindowMac* wxpeer, | |
40 | wxWindowMac* parent, | |
41 | wxWindowID WXUNUSED(id), | |
42 | const wxPoint& pos, | |
43 | const wxSize& size, | |
44 | long WXUNUSED(style), | |
45 | long WXUNUSED(extraStyle)) | |
46 | { | |
47 | Rect bounds = wxMacGetBoundsForControl( wxpeer , pos , size ) ; | |
48 | wxMacControl* peer = new wxMacControl(wxpeer) ; | |
49 | verify_noerr(CreateSeparatorControl(MAC_WXHWND(parent->MacGetTopLevelWindowRef()),&bounds, peer->GetControlRefAddr() ) ) ; | |
50 | return peer; | |
51 | } | |
52 | ||
53 | #endif //wxUSE_STATLINE |