CONTROL GET SIZE statement

Purpose

Get the size of a control in the specified dialog.

Syntax

CONTROL GET SIZE hDlg, id& TO wide&, high&

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 LOC, CONTROL SET LOC, CONTROL SET SIZE