1 /////////////////////////////////////////////////////////////////////////////
2 // Name: cocoa/statline.mm
3 // Purpose: wxStaticLine
4 // Author: David Elliott
8 // Copyright: (c) 2003 David Elliott
9 // Licence: wxWindows license
10 /////////////////////////////////////////////////////////////////////////////
13 #include "wx/statline.h"
15 #import <AppKit/NSView.h>
17 IMPLEMENT_DYNAMIC_CLASS(wxStaticLine, wxControl)
18 BEGIN_EVENT_TABLE(wxStaticLine, wxStaticLineBase)
20 // WX_IMPLEMENT_COCOA_OWNER(wxStaticLine,NSTextField,NSControl,NSView)
22 bool wxStaticLine::Create(wxWindow *parent, wxWindowID winid,
28 if(!CreateControl(parent,winid,pos,size,style,wxDefaultValidator,name))
30 SetNSView([[NSView alloc] initWithFrame: NSMakeRect(10,10,20,20)]);
31 [m_cocoaNSView release];
33 m_parent->CocoaAddChild(this);
37 wxStaticLine::~wxStaticLine()