]> git.saurik.com Git - wxWidgets.git/blobdiff - src/cocoa/gauge.mm
more Unicode fixes
[wxWidgets.git] / src / cocoa / gauge.mm
index 17962bdde9067a3ac229311c5abc497e2a2c5997..aafc5b6b76a717d373b79f18f5c24bb19d89aa5f 100644 (file)
@@ -28,10 +28,12 @@ bool wxGauge::Create(wxWindow *parent, wxWindowID winid, int range,
 {
     if(!CreateControl(parent,winid,pos,size,style,validator,name))
         return false;
-    SetNSView([[NSProgressIndicator alloc] initWithFrame: NSMakeRect(10,10,20,20)]);
+    SetNSView([[NSProgressIndicator alloc] initWithFrame: MakeDefaultNSRect(size)]);
     [m_cocoaNSView release];
     if(m_parent)
         m_parent->CocoaAddChild(this);
+    SetInitialFrameRect(pos,size);
+
     return true;
 }