1 /////////////////////////////////////////////////////////////////////////////
2 // Name: cocoa/statline.mm
3 // Purpose: wxStaticLine
4 // Author: David Elliott
8 // Copyright: (c) 2003 David Elliott
9 // Licence: wxWindows license
10 /////////////////////////////////////////////////////////////////////////////
12 #include "wx/wxprec.h"
16 #include "wx/statline.h"
18 #import <AppKit/NSBox.h>
20 IMPLEMENT_DYNAMIC_CLASS(wxStaticLine, wxControl)
21 BEGIN_EVENT_TABLE(wxStaticLine, wxStaticLineBase)
23 // WX_IMPLEMENT_COCOA_OWNER(wxStaticLine,NSTextField,NSControl,NSView)
25 bool wxStaticLine::Create(wxWindow *parent, wxWindowID winid,
31 if(!CreateControl(parent,winid,pos,size,style,wxDefaultValidator,name))
33 SetNSView([[NSBox alloc] initWithFrame: MakeDefaultNSRect(size)]);
34 [m_cocoaNSView release];
35 [(NSBox*)m_cocoaNSView setBoxType: NSBoxSeparator];
37 m_parent->CocoaAddChild(this);
38 SetInitialFrameRect(pos,size);
43 wxStaticLine::~wxStaticLine()