Resize method (WinStudio scripts)
Applies To
IWSFormComponent interface
Definition
Sets the coordinates and dimensions of a component.
Syntax
object.Resize( left, top, height, width )
| Part | Description | 
| object | Required. A reference to a component object. | 
| left | Required. A Double that sets the distance from the left edge of the component to the left edge of the WinStudio workspace. | 
| top | Required. A Double that sets the distance from the top of the component to the top of the WinStudio workspace. | 
| height | Required. A Double that sets the height of the component. | 
| width | Required. A Double that sets the width of the component. | 
Remarks
The parameters are measured in character units.
Example
Sub Main()
   ThisForm.Components("grid1").Resize(23, 26, 10, 60)
   ThisForm.Components("grid1").RepaintWindow()
End Sub