CONTROL GET LOC statement

Purpose

Get the location of the specified control in a dialog.

Syntax

CONTROL GET LOC hDlg, id& TO x&, y&

Remarks

hDlg refers to the dialog that owns the control.

id& is the unique control identifier as assigned to the control with a CONTROL ADD statement.

The location of the top left corner of the control is placed in the x& (horizontal location) and y& (vertical location) variables. The location is relative to the upper-left corner of the client area in the parent dialog. The coordinates are specified in the same terms (pixels or dialog units) as the parent dialog.

See also

Dynamic Dialog Tools, CONTROL GET CLIENT, CONTROL GET SIZE, CONTROL SET LOC, CONTROL SET SIZE