1 /////////////////////////////////////////////////////////////////////////////
2 // Name: generic/statline.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 // ----------------------------------------------------------------------------
20 #pragma implementation "statline.h"
23 // For compilers that support precompilation, includes "wx.h".
24 #include "wx/wxprec.h"
30 #include "wx/statline.h"
31 #include "wx/statbox.h"
33 #include "wx/mac/uma.h"
35 // ============================================================================
37 // ============================================================================
39 IMPLEMENT_DYNAMIC_CLASS(wxStaticLine
, wxControl
)
41 // ----------------------------------------------------------------------------
43 // ----------------------------------------------------------------------------
45 bool wxStaticLine::Create( wxWindow
*parent
,
52 m_macIsUserPane
= FALSE
;
54 if ( !wxStaticLineBase::Create(parent
, id
, pos
, size
,
55 style
, wxDefaultValidator
, name
) )
58 Rect bounds
= wxMacGetBoundsForControl( this , pos
, size
) ;
59 m_macControl
= (WXWidget
) ::NewControl( MAC_WXHWND(parent
->MacGetTopLevelWindowRef()) , &bounds
, "\p" , true , 0 , 0 , 1,
60 kControlSeparatorLineProc
, (long) this ) ;
62 MacPostControlCreate(pos
,size
) ;