class WXDLLIMPEXP_FWD_CORE wxSubwindows;
// Slider
-class WXDLLEXPORT wxSlider : public wxSliderBase
+class WXDLLIMPEXP_CORE wxSlider : public wxSliderBase
{
public:
wxSlider() { Init(); }
void Init();
// format an integer value as string
- static wxString Format(int n) { return wxString::Format(_T("%d"), n); }
+ static wxString Format(int n) { return wxString::Format(wxT("%d"), n); }
// get the boundig box for the slider and possible labels
wxRect GetBoundingBox() const;
- // get the height and, if the pointer is not NULL, width of our labels
- int GetLabelsSize(int *width = NULL) const;
+ // Get the height and, if the pointers are non NULL, widths of both labels.
+ int GetLabelsSize(int *widthMin = NULL, int *widthMax = NULL) const;
// overridden base class virtuals
int m_pageSize;
int m_lineSize;
int m_tickFreq;
+ int m_minLabelWidth;
+ int m_maxLabelWidth;
// flag needed to detect whether we're getting THUMBRELEASE event because
// of dragging the thumb or scrolling the mouse wheel