Home > Language Reference > Classes > UIComponent

PenMove Event

Event raised when the user moves the stylus.

Syntax

Public Event PenMove(ByVal x As Integer, ByVal y As Integer)

ParameterDescription
xHorizontal stylus position, expressed in standard coordinates.
yVertical stylus position, expressed in standard coordinates.

Remarks

The PenMove event is raised when the user moves the stylus. The x and y parameters indicate the coordinates of the stylus expressed in standard coordinates with respect to the top left corner of the element. These coordinates can be negative, the element continuing to raise events until the user releases the stylus, even if it moves outside the element area.

Note: the majority of controls represented by classes derived from the UIComponent intercept these events internally, and do not raise them. You can only raise this event from Form, Label classes as well as UserControl and its derived classes.

System requirements

SystemMinimal versionRemarks
Palm OSPalm OS 3.0N/A