]>
git.saurik.com Git - wxWidgets.git/blob - src/osx/carbon/statlmac.cpp
d0102cc8c3b46ed4dc7d1dfdecfbaa3bb4755717
1 /////////////////////////////////////////////////////////////////////////////
2 // Name: src/mac/carbon/statlmac.cpp
3 // Purpose: a generic wxStaticLine class
4 // Author: Vadim Zeitlin
7 // Copyright: (c) 1998 Vadim Zeitlin
8 // Licence: wxWindows licence
9 /////////////////////////////////////////////////////////////////////////////
11 // ============================================================================
13 // ============================================================================
15 // ----------------------------------------------------------------------------
17 // ----------------------------------------------------------------------------
19 // For compilers that support precompilation, includes "wx.h".
20 #include "wx/wxprec.h"
28 #include "wx/statline.h"
31 #include "wx/statbox.h"
34 #include "wx/mac/uma.h"
36 // ============================================================================
38 // ============================================================================
40 IMPLEMENT_DYNAMIC_CLASS(wxStaticLine
, wxControl
)
42 // ----------------------------------------------------------------------------
44 // ----------------------------------------------------------------------------
46 bool wxStaticLine::Create( wxWindow
*parent
,
53 m_macIsUserPane
= false ;
55 if ( !wxStaticLineBase::Create(parent
, id
, pos
, size
,
56 style
, wxDefaultValidator
, name
) )
59 Rect bounds
= wxMacGetBoundsForControl( this , pos
, size
) ;
60 m_peer
= new wxMacControl(this) ;
61 verify_noerr(CreateSeparatorControl(MAC_WXHWND(parent
->MacGetTopLevelWindowRef()),&bounds
, m_peer
->GetControlRefAddr() ) ) ;
63 MacPostControlCreate(pos
,size
) ;
68 #endif //wxUSE_STATLINE