DIALOG SET LOC statement

Purpose

Change the position of a dialog.

Syntax

DIALOG SET LOC hDlg, x&, y&

Remarks

hDlg identifies the dialog to reposition. x& and y& specify the new coordinates of the upper-left corner of the target dialog. x& and y& are the horizontal and vertical coordinates respectively. If the dialog was created with the PIXELS option in the DIALOG NEW statement, the values are returned in pixel units. If the UNITS option was used (or no scaling option was specified), the values are returned in dialog units.

If the dialog has a parent, the coordinates are relative to the upper-left corner of the parent dialog client area. Otherwise, the coordinates are relative to the upper-left corner of the desktop workspace.

See also

Dynamic Dialog Tools, DIALOG GET CLIENT, DIALOG GET LOC, DIALOG GET SIZE, DIALOG PIXELS, DIALOG SET SIZE, DIALOG UNITS