]> git.saurik.com Git - wxWidgets.git/blame - src/cocoa/statline2.mm
support full 32bit range in wxGauge
[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
449c5673
DE
12#include "wx/wxprec.h"
13#ifndef WX_PRECOMP
14 #include "wx/app.h"
15#endif //WX_PRECOMP
da0634c1
DE
16#include "wx/statline.h"
17
26916975 18#import <AppKit/NSBox.h>
d5f22969 19
da0634c1
DE
20IMPLEMENT_DYNAMIC_CLASS(wxStaticLine, wxControl)
21BEGIN_EVENT_TABLE(wxStaticLine, wxStaticLineBase)
22END_EVENT_TABLE()
23// WX_IMPLEMENT_COCOA_OWNER(wxStaticLine,NSTextField,NSControl,NSView)
24
25bool wxStaticLine::Create(wxWindow *parent, wxWindowID winid,
26 const wxPoint& pos,
27 const wxSize& size,
28 long style,
29 const wxString& name)
30{
31 if(!CreateControl(parent,winid,pos,size,style,wxDefaultValidator,name))
32 return false;
26916975 33 SetNSView([[NSBox alloc] initWithFrame: MakeDefaultNSRect(size)]);
d5f22969 34 [m_cocoaNSView release];
26916975 35 [(NSBox*)m_cocoaNSView setBoxType: NSBoxSeparator];
da0634c1
DE
36 if(m_parent)
37 m_parent->CocoaAddChild(this);
8d656ea9
DE
38 SetInitialFrameRect(pos,size);
39
da0634c1
DE
40 return true;
41}
42
43wxStaticLine::~wxStaticLine()
44{
da0634c1
DE
45}
46