+ // common part of all ctors
+ void Init();
+
+ // format an integer value as string
+ static wxString Format(int n) { return wxString::Format(_T("%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;
+
+
+ // overridden base class virtuals
+ virtual void DoGetPosition(int *x, int *y) const;
+ virtual void DoGetSize(int *width, int *height) const;
+ virtual void DoMoveWindow(int x, int y, int width, int height);
+ virtual wxSize DoGetBestSize() const;
+
+ // the labels windows, if any
+ wxSubwindows *m_labels;
+