virtual void SetValue(int val);
virtual int GetValue() const;
+ virtual void SetRange(int minVal, int maxVal);
virtual bool SetFont(const wxFont &font);
virtual void SetFocus();
// wxSpinButton doesn't accept focus, but we do
virtual bool AcceptsFocus() const { return wxWindow::AcceptsFocus(); }
+ // we're like wxTextCtrl and not (default) wxButton
+ virtual wxVisualAttributes GetDefaultAttributes() const
+ {
+ return GetClassDefaultAttributes(GetWindowVariant());
+ }
+
+ static wxVisualAttributes
+ GetClassDefaultAttributes(wxWindowVariant variant = wxWINDOW_VARIANT_NORMAL)
+ {
+ return GetCompositeControlsDefaultAttributes(variant);
+ }
+
// for internal use only
// get the subclassed window proc of the buddy text
// process a WM_COMMAND generated by the buddy text control
bool ProcessTextCommand(WXWORD cmd, WXWORD id);
+ // recognize buddy window as part of this control at wx level
+ virtual bool ContainsHWND(WXHWND hWnd) const { return hWnd == m_hwndBuddy; }
+
protected:
virtual void DoGetPosition(int *x, int *y) const;
virtual void DoMoveWindow(int x, int y, int width, int height);