1 /////////////////////////////////////////////////////////////////////////////
2 // Name: cocoa/gauge.mm
4 // Author: David Elliott
8 // Copyright: (c) 2003 David Elliott
9 // Licence: wxWindows licence
10 /////////////////////////////////////////////////////////////////////////////
18 #import <AppKit/NSProgressIndicator.h>
20 IMPLEMENT_DYNAMIC_CLASS(wxGauge, wxControl)
21 BEGIN_EVENT_TABLE(wxGauge, wxGaugeBase)
23 // WX_IMPLEMENT_COCOA_OWNER(wxGauge,NSProgressIndicator,NSView,NSView)
25 bool wxGauge::Create(wxWindow *parent, wxWindowID winid, int range,
26 const wxPoint& pos, const wxSize& size, long style,
27 const wxValidator& validator, const wxString& name)
29 if(!CreateControl(parent,winid,pos,size,style,validator,name))
31 SetNSView([[NSProgressIndicator alloc] initWithFrame: NSMakeRect(10,10,20,20)]);
32 [m_cocoaNSView release];
34 m_parent->CocoaAddChild(this);