]> git.saurik.com Git - wxWidgets.git/blame - src/mac/carbon/statlmac.cpp
correcting DropData behaviour so that preferred format is handled correctly
[wxWidgets.git] / src / mac / carbon / statlmac.cpp
CommitLineData
ee6b1d97
SC
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
65571936 8// Licence: wxWindows licence
ee6b1d97
SC
9/////////////////////////////////////////////////////////////////////////////
10
11// ============================================================================
12// declarations
13// ============================================================================
14
15// ----------------------------------------------------------------------------
16// headers
17// ----------------------------------------------------------------------------
18
3d1a4878 19#if defined(__GNUG__) && !defined(NO_GCC_PRAGMA)
ee6b1d97
SC
20 #pragma implementation "statline.h"
21#endif
22
23// For compilers that support precompilation, includes "wx.h".
24#include "wx/wxprec.h"
25
fa0c64d6
RN
26#if wxUSE_STATLINE
27
ee6b1d97
SC
28#ifdef __BORLANDC__
29 #pragma hdrstop
30#endif
31
32#include "wx/statline.h"
33#include "wx/statbox.h"
34
d497dca4 35#include "wx/mac/uma.h"
1d261710 36
ee6b1d97
SC
37// ============================================================================
38// implementation
39// ============================================================================
40
41IMPLEMENT_DYNAMIC_CLASS(wxStaticLine, wxControl)
42
43// ----------------------------------------------------------------------------
44// wxStaticLine
45// ----------------------------------------------------------------------------
46
47bool wxStaticLine::Create( wxWindow *parent,
48 wxWindowID id,
49 const wxPoint &pos,
50 const wxSize &size,
51 long style,
52 const wxString &name)
53{
facd6764
SC
54 m_macIsUserPane = FALSE ;
55
b45ed7a2
VZ
56 if ( !wxStaticLineBase::Create(parent, id, pos, size,
57 style, wxDefaultValidator, name) )
58 return false;
59
facd6764 60 Rect bounds = wxMacGetBoundsForControl( this , pos , size ) ;
b905d6cc 61 m_peer = new wxMacControl(this) ;
5ca0d812 62 verify_noerr(CreateSeparatorControl(MAC_WXHWND(parent->MacGetTopLevelWindowRef()),&bounds, m_peer->GetControlRefAddr() ) ) ;
4c37f124 63
facd6764 64 MacPostControlCreate(pos,size) ;
ee6b1d97
SC
65
66 return TRUE;
67}
fa0c64d6
RN
68
69#endif //wxUSE_STATLINE