]> git.saurik.com Git - wxWidgets.git/blob - src/cocoa/statline2.mm
No real changes, just change type of MSWGetBgBrush() argument.
[wxWidgets.git] / src / cocoa / statline2.mm
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: wxWidgets licence
10 /////////////////////////////////////////////////////////////////////////////
11
12 #include "wx/wxprec.h"
13 #ifndef WX_PRECOMP
14 #include "wx/app.h"
15 #endif //WX_PRECOMP
16 #include "wx/statline.h"
17
18 #include "wx/cocoa/autorelease.h"
19
20 #import <AppKit/NSBox.h>
21
22 IMPLEMENT_DYNAMIC_CLASS(wxStaticLine, wxControl)
23 BEGIN_EVENT_TABLE(wxStaticLine, wxStaticLineBase)
24 END_EVENT_TABLE()
25 // WX_IMPLEMENT_COCOA_OWNER(wxStaticLine,NSTextField,NSControl,NSView)
26
27 bool wxStaticLine::Create(wxWindow *parent, wxWindowID winid,
28 const wxPoint& pos,
29 const wxSize& size,
30 long style,
31 const wxString& name)
32 {
33 wxAutoNSAutoreleasePool pool;
34 if(!CreateControl(parent,winid,pos,size,style,wxDefaultValidator,name))
35 return false;
36 SetNSView([[NSBox alloc] initWithFrame: MakeDefaultNSRect(size)]);
37 [m_cocoaNSView release];
38 [(NSBox*)m_cocoaNSView setBoxType: NSBoxSeparator];
39 if(m_parent)
40 m_parent->CocoaAddChild(this);
41 SetInitialFrameRect(pos,size);
42
43 return true;
44 }
45
46 wxStaticLine::~wxStaticLine()
47 {
48 }
49