-wxWidgetImplType* wxWidgetImpl::CreateSlider( wxWindowMac* wxpeer,
- wxWindowMac* parent,
- wxWindowID WXUNUSED(id),
+class wxMacSliderCarbonControl : public wxMacControl
+{
+public :
+ wxMacSliderCarbonControl( wxWindowMac* peer ) : wxMacControl( peer )
+ {
+ }
+
+ // work around an OSX bug : if the control is having the keyboard focus it cannot
+ // be set to the full max/min values by dragging
+ virtual bool CanFocus() const
+ {
+ return false;
+ }
+};
+
+
+wxWidgetImplType* wxWidgetImpl::CreateSlider( wxWindowMac* wxpeer,
+ wxWindowMac* parent,
+ wxWindowID WXUNUSED(id),