MouseEnter and MouseExit work fine, but MouseMove returns the following errors:
Tooltips.TooltipHandler, line 1
Type mismatch error. Expected delegate Delegate( DesktopUIControl, Integer, Integer ), but got delegate Delegate( DesktopUIControl )
AddHandler Caller.MouseMove, AddressOf ShowToolTip
Tooltips.TooltipHandler, line 1
This method requires fewer parameters than were passed
AddHandler Caller.MouseMove, AddressOf ShowToolTip
Here is the code:
Public Sub TooltipHandler(Extends Caller as DesktopUIControl)
AddHandler Caller.MouseMove, AddressOf ShowToolTip
AddHandler Caller.MouseEnter, AddressOf ShowToolTip
AddHandler Caller.MouseExit, AddressOf HideToolTip
End Sub
The event is expecting a handler method with three parameters (DesktopUIControl, Integer, Integer) but you are assigning a method with one parameter (DesktopUIControl). The two additional parameters receive the mouse X and Y coordinates.
Tooltips.TooltipHandler, line 1
Type “DesktopUIControl” has no member named “MouseMove”
AddHandler Caller.MouseMove(Integer, Integer), AddressOf ShowToolTip
AddHandler on mouse events is not currently working consistently across platforms (or at all on macOS). I have reported it and it’s nominated for the Bug Bash.