[Gambas-user] sliderbox bug: Still respond to mouse wheel when its disabled

Jorge Carrión shordi at ...626...
Wed Apr 26 19:40:35 CEST 2017


A sliderbox with Enabled property to False still respond to mouse wheel.
I've write a little class as a  to workaround with this code:


Export
Inherits SliderBox
Public Const _Similar As String = "SpinBox,SliderBox"
Public Const _drawWith As String = "SliderBox"

Private obs As Observer

Public Sub _new()

   obs = New Observer(Me.Children[1]) As "Spin"

End

Public Sub spin_mousewheel()

 If Me.enabled = False Then Stop Event

End

But I think that it will be better fix the bug.

Best regards.



More information about the User mailing list