]> git.saurik.com Git - wxWidgets.git/blame - src/mac/carbon/statlmac.cpp
Enable UpdateUI events in wxTaskBarIcon.
[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
19#ifdef __GNUG__
20 #pragma implementation "statline.h"
21#endif
22
23// For compilers that support precompilation, includes "wx.h".
24#include "wx/wxprec.h"
25
26#ifdef __BORLANDC__
27 #pragma hdrstop
28#endif
29
30#include "wx/statline.h"
31#include "wx/statbox.h"
32
d497dca4 33#include "wx/mac/uma.h"
1d261710 34
ee6b1d97
SC
35// ============================================================================
36// implementation
37// ============================================================================
38
39IMPLEMENT_DYNAMIC_CLASS(wxStaticLine, wxControl)
40
41// ----------------------------------------------------------------------------
42// wxStaticLine
43// ----------------------------------------------------------------------------
44
45bool wxStaticLine::Create( wxWindow *parent,
46 wxWindowID id,
47 const wxPoint &pos,
48 const wxSize &size,
49 long style,
50 const wxString &name)
51{
facd6764
SC
52 m_macIsUserPane = FALSE ;
53
b45ed7a2
VZ
54 if ( !wxStaticLineBase::Create(parent, id, pos, size,
55 style, wxDefaultValidator, name) )
56 return false;
57
facd6764 58 Rect bounds = wxMacGetBoundsForControl( this , pos , size ) ;
21fd5529 59 m_peer = new wxMacControl() ;
5ca0d812 60 verify_noerr(CreateSeparatorControl(MAC_WXHWND(parent->MacGetTopLevelWindowRef()),&bounds, m_peer->GetControlRefAddr() ) ) ;
4c37f124 61
facd6764 62 MacPostControlCreate(pos,size) ;
ee6b1d97
SC
63
64 return TRUE;
65}