]> git.saurik.com Git - wxWidgets.git/blame - src/mac/classic/statlmac.cpp
use WX_DEFINE_ARRAY_INT for an array of ints (bug 1536482)
[wxWidgets.git] / src / mac / classic / statlmac.cpp
CommitLineData
2646f485 1/////////////////////////////////////////////////////////////////////////////
876cd6f7 2// Name: src/mac/classic/statlmac.cpp
2646f485
SC
3// Purpose: a generic wxStaticLine class
4// Author: Vadim Zeitlin
5// Created: 28.06.99
6// Version: $Id$
7// Copyright: (c) 1998 Vadim Zeitlin
65571936 8// Licence: wxWindows licence
2646f485
SC
9/////////////////////////////////////////////////////////////////////////////
10
11// ============================================================================
12// declarations
13// ============================================================================
14
15// ----------------------------------------------------------------------------
16// headers
17// ----------------------------------------------------------------------------
18
2646f485
SC
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"
876cd6f7
WS
27
28#ifndef WX_PRECOMP
29 #include "wx/statbox.h"
30#endif
2646f485
SC
31
32#include "wx/mac/uma.h"
33
34// ============================================================================
35// implementation
36// ============================================================================
37
38IMPLEMENT_DYNAMIC_CLASS(wxStaticLine, wxControl)
39
40// ----------------------------------------------------------------------------
41// wxStaticLine
42// ----------------------------------------------------------------------------
43
44bool 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 ;
876cd6f7 57
2646f485
SC
58 MacPreControlCreate( parent , id , wxEmptyString , pos , size ,style, wxDefaultValidator , name , &bounds , title ) ;
59
876cd6f7 60 m_macControl = (WXWidget) ::NewControl( MAC_WXHWND(parent->MacGetRootWindow()) , &bounds , title , false , 0 , 0 , 1,
2646f485 61 kControlSeparatorLineProc , (long) this ) ;
876cd6f7 62
2646f485
SC
63 MacPostControlCreate() ;
64
876cd6f7 65 return true;
2646f485 66}