Mouse Position Y

Description

Mouse Position Y reports the location of the mouse with respect to a Form's coordinate system. It ia often used for on-screen joysticks or for identifying a coordinate on a graph. Mouse positions are only known during the mouse events Mouse Down, Mouse Drag, and Mouse Up.

Escapes

Referencing Mouse Position Y does not produce any escapes.

Examples

This example shows how clicking and dragging on the surface of a form can have an effect like a scroll bar:

... producing this:

This example shows how clicking and dragging in the Y direction on a form can perform speed control of a motor:

Related Topics

Mouse Down
Mouse Drag
Mouse Up
Mouse Position X
Set Coordinate Frame