]> git.saurik.com Git - wxWidgets.git/blob - src/mac/carbon/statlmac.cpp
Quit application menu item needs special handling like the Preferences item. [ patch...
[wxWidgets.git] / src / mac / carbon / statlmac.cpp
1 /////////////////////////////////////////////////////////////////////////////
2 // Name: generic/statline.cpp
3 // Purpose: a generic wxStaticLine class
4 // Author: Vadim Zeitlin
5 // Created: 28.06.99
6 // Version: $Id$
7 // Copyright: (c) 1998 Vadim Zeitlin
8 // Licence: wxWindows licence
9 /////////////////////////////////////////////////////////////////////////////
10
11 // ============================================================================
12 // declarations
13 // ============================================================================
14
15 // ----------------------------------------------------------------------------
16 // headers
17 // ----------------------------------------------------------------------------
18
19 #if defined(__GNUG__) && !defined(NO_GCC_PRAGMA)
20 #pragma implementation "statline.h"
21 #endif
22
23 // For compilers that support precompilation, includes "wx.h".
24 #include "wx/wxprec.h"
25
26 #if wxUSE_STATLINE
27
28 #ifdef __BORLANDC__
29 #pragma hdrstop
30 #endif
31
32 #include "wx/statline.h"
33 #include "wx/statbox.h"
34
35 #include "wx/mac/uma.h"
36
37 // ============================================================================
38 // implementation
39 // ============================================================================
40
41 IMPLEMENT_DYNAMIC_CLASS(wxStaticLine, wxControl)
42
43 // ----------------------------------------------------------------------------
44 // wxStaticLine
45 // ----------------------------------------------------------------------------
46
47 bool wxStaticLine::Create( wxWindow *parent,
48 wxWindowID id,
49 const wxPoint &pos,
50 const wxSize &size,
51 long style,
52 const wxString &name)
53 {
54 m_macIsUserPane = FALSE ;
55
56 if ( !wxStaticLineBase::Create(parent, id, pos, size,
57 style, wxDefaultValidator, name) )
58 return false;
59
60 Rect bounds = wxMacGetBoundsForControl( this , pos , size ) ;
61 m_peer = new wxMacControl(this) ;
62 verify_noerr(CreateSeparatorControl(MAC_WXHWND(parent->MacGetTopLevelWindowRef()),&bounds, m_peer->GetControlRefAddr() ) ) ;
63
64 MacPostControlCreate(pos,size) ;
65
66 return TRUE;
67 }
68
69 #endif //wxUSE_STATLINE