ErrorProvider Xojo Plugin

ErrorProvider.MouseDown Event

This event is fired when the error gets mouse down on.

MouseDown(
   newSource as DesktopUIControl,
   source as RectControl,
   x as Integer,
   y as Integer) as Boolean

Parameters

newSource
The source control that indicates which error the event applies to. (This can be nil if the source is old style control, in which case the source parameter would contain reference to the control). Note when running on Xojo older than 2021r3 then this parameter will not exist.
source
The source control that indicates which error the event applies to. (This can be nil if the source is new style control, in which case the newSource parameter would contain reference to the control)
x
X coordinate of the mouse relative to where the error is displayed.
y
Y coordinate of the mouse relative to where the error is displayed.

Returns

Boolean
Return true if you want to get mouse up event, else false.

Remarks

Use the source parameters to detect which error got mouse down.

This event follows same rules as normal Xojo mouse down events, returning true, makes it give you a mouse MouseUp event when the mouse goes up.

See Also

ErrorProvider Control