const wxRect& rect,
int flags = 0);
+ virtual wxSize GetCheckBoxSize(wxWindow* win);
+
virtual void DrawComboBoxDropButton(wxWindow *win,
wxDC& dc,
const wxRect& rect,
kThemeCheckBox, kThemeAdornmentNone);
}
+wxSize wxRendererMac::GetCheckBoxSize(wxWindow* WXUNUSED(win))
+{
+ wxSize size;
+ SInt32 width, height;
+ OSStatus errStatus;
+
+ errStatus = GetThemeMetric(kThemeMetricCheckBoxWidth, &width);
+ if (errStatus == noErr)
+ {
+ size.SetWidth(width);
+ }
+
+ errStatus = GetThemeMetric(kThemeMetricCheckBoxHeight, &height);
+ if (errStatus == noErr)
+ {
+ size.SetHeight(height);
+ }
+
+ return size;
+}
+
void
wxRendererMac::DrawComboBoxDropButton(wxWindow *win,
wxDC& dc,
HIThemeDrawFocusRect( &cgrect , true , cgContext , kHIThemeOrientationNormal ) ;
}
-