- // the methods which must be overridden in the derived class
-
- // return TRUE if the mouse button can be used to activate scrollbar, FALSE
- // if not (only left mouse button can do it under Windows, any button under
- // GTK+)
- virtual bool IsAllowedButton(int button) = 0;
+ // return true if the mouse button can be used to activate scrollbar, false
+ // if not (any button under GTK+ unlike left button only which is default)
+ virtual bool IsAllowedButton(int button) const
+ { return button == wxMOUSE_BTN_LEFT; }