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)
| Parameter | Description |
| x | Horizontal stylus position, expressed in standard coordinates. |
| y | Vertical 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
| System | Minimal version | Remarks |
| Palm OS | Palm OS 3.0 | N/A |