Function Name | dcl-Control-SetPos |
---|---|
Syntax | (dcl-Control-SetPos
<CONTROL>
Left [as Long]
Top [as Long]
{Width [as Long]} {Height [as
Long]}) |
Return Type | Boolean (T if successful; otherwise NIL) |
Applies To | All Controls and Forms |
This method sets the position and size of a form or control. If the control is a child window, the specified coordinates are relative to the upper left corner of the parent window's client area; otherwise they are screen coordinates. If the optional Width and Height arguments are omitted, the control's size will remain unchanged. Both Width and Height must be greater than zero.