The current AControl control object.
Object Public Const
The control object is used to get the current control object from the control event code (for example, OnClick). Using the Control variable in control events is preferred over using the control name in the form since the control name may be different when copying or duplicating the control.
The Control variable or name is not required when referring to the control properties or methods.
The following event procedure centers the control when the user clicks on the button:
Procedure btn.OnClick(): void public
{
Control.Move((Form.ScaleWidth-Width)/2, Form.ScaleHeight-Height)/2)
}