]> git.saurik.com Git - wxWidgets.git/blob - src/mac/classic/statlmac.cpp
cleanup
[wxWidgets.git] / src / mac / classic / statlmac.cpp
1 /////////////////////////////////////////////////////////////////////////////
2 // Name: src/mac/classic/statlmac.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 // For compilers that support precompilation, includes "wx.h".
20 #include "wx/wxprec.h"
21
22 #ifdef __BORLANDC__
23 #pragma hdrstop
24 #endif
25
26 #include "wx/statline.h"
27
28 #ifndef WX_PRECOMP
29 #include "wx/statbox.h"
30 #endif
31
32 #include "wx/mac/uma.h"
33
34 // ============================================================================
35 // implementation
36 // ============================================================================
37
38 IMPLEMENT_DYNAMIC_CLASS(wxStaticLine, wxControl)
39
40 // ----------------------------------------------------------------------------
41 // wxStaticLine
42 // ----------------------------------------------------------------------------
43
44 bool wxStaticLine::Create( wxWindow *parent,
45 wxWindowID id,
46 const wxPoint &pos,
47 const wxSize &size,
48 long style,
49 const wxString &name)
50 {
51 if ( !wxStaticLineBase::Create(parent, id, pos, size,
52 style, wxDefaultValidator, name) )
53 return false;
54
55 Rect bounds ;
56 Str255 title ;
57
58 MacPreControlCreate( parent , id , wxEmptyString , pos , size ,style, wxDefaultValidator , name , &bounds , title ) ;
59
60 m_macControl = (WXWidget) ::NewControl( MAC_WXHWND(parent->MacGetRootWindow()) , &bounds , title , false , 0 , 0 , 1,
61 kControlSeparatorLineProc , (long) this ) ;
62
63 MacPostControlCreate() ;
64
65 return true;
66 }