]> git.saurik.com Git - wxWidgets.git/blame - src/cocoa/statline2.mm
Regenerated by tmake: added all the cocoa source files
[wxWidgets.git] / src / cocoa / statline2.mm
CommitLineData
da0634c1
DE
1/////////////////////////////////////////////////////////////////////////////
2// Name: cocoa/statline.mm
3// Purpose: wxStaticLine
4// Author: David Elliott
5// Modified by:
6// Created: 2003/02/15
7// RCS-ID: $Id:
8// Copyright: (c) 2003 David Elliott
9// Licence: wxWindows license
10/////////////////////////////////////////////////////////////////////////////
11
12#include "wx/app.h"
13#include "wx/statline.h"
14
15IMPLEMENT_DYNAMIC_CLASS(wxStaticLine, wxControl)
16BEGIN_EVENT_TABLE(wxStaticLine, wxStaticLineBase)
17END_EVENT_TABLE()
18// WX_IMPLEMENT_COCOA_OWNER(wxStaticLine,NSTextField,NSControl,NSView)
19
20bool wxStaticLine::Create(wxWindow *parent, wxWindowID winid,
21 const wxPoint& pos,
22 const wxSize& size,
23 long style,
24 const wxString& name)
25{
26 if(!CreateControl(parent,winid,pos,size,style,wxDefaultValidator,name))
27 return false;
28 m_cocoaNSView = NULL;
29 if(m_parent)
30 m_parent->CocoaAddChild(this);
31 return true;
32}
33
34wxStaticLine::~wxStaticLine()
35{
36 CocoaRemoveFromParent();
37}
38