Home > Language Reference > Classes > UIComponent

Move Method

Moves or resizes an element.

Syntax

Public Sub Move(ByVal iLeft As Integer, ByVal iTop As Integer, ByVal iWidth As Integer, ByVal iHeight As Integer)

ParameterDescription
iLeftPosition of the left edge of the element.
iTopPosition of the top edge of the element.
iWidthElement width.
iHeightElement height.

Remarks

The Move method modifies the position and size of an element at runtime. The iLeft and iTop parameters specify the new coordinates of the top left corner with respect to the top left corner of the form on which it is found whilst the iwidth and iHeight parameters specify the new size of the element. All coordinates are expressed in standard coordinates.

If you want the element to keep the dimensions it had before being moved, use the values of the Width and Height properties as the third and fourth parameters. If you want to resize it without moving it, use the Left and Top values as the first and second parameters.

Note: it is not possible to move a form. Using this method on an object derived from the Form class has no effect.

System requirements

SystemMinimal versionRemarks
Palm OSPalm OS 3.0N/A