DIALOG GET LOC statement

Purpose | Return the location of the specified dialog.
Syntax | DIALOG GET LOC hDlg TO x&, y&

Remarks

hDlg refers to the dialog to examine. The location of the dialog is placed in the x& (horizontal position) and y& (vertical position) variables as a relative location. 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.

[OBJECT]If the [OBJECT]parent[OBJECT] of the dialog is zero (or %HWND_DESKTOP), the location is relative to the upper-left corner of the display. Otherwise, it is relative to the upper-left corner of client area of the parent window.

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