AddHandler syntax

Greetings,

I have several handlers in a container that work great, except this one…

var nControl As New Desktopbutton
AddHandler nControl.mouseWheel(1, 1, 0, 0), AddressOf MouseWheelControlCallBack

Errors—
Type “DesktopButton” has no member named “mouseWheel”
Syntax error for the same line

Does the term member refer to an event name, or an array member?

Wish button.double pressed existed.

Thanks!

https://documentation.xojo.com/api/language/addhandler.html#addhandler

What is the (1, 1, 0, 0) stuff?

1 Like

Does MouseWheelControlCallBack include the first parameter theButton as DesktopButton? It should have 5 parameters, not 4.

2 Likes