Width property (WinStudio scripts)
Applies To
- IWSForm interface
- IWSFormComponent interface
Definition
Form objects: Sets or returns the width of a form in character units. Read/write.
Component objects: Returns the width of a component in character units. Read-only.
Get Syntax
object.Width
Part | Description |
object | Required. A reference to a form or component object. |
Set Syntax
object.Width = Double
Part | Description |
object | Required. A reference to a form or component object. |
Double | Required. Form objects only. An expression that evaluates to type Double and sets the width of the form using character units. The value must be greater than 0. |
Remarks
The return value is type Double and indicates the form or component width in character units.
Examples
Form example
Sub Main()
Application.ShowMessage("The current width of this form = " & _
ThisForm.Width & " units.")
ThisForm.Width = 75
Application.ShowMessage("The width of this form now = " & _
ThisForm.Width & " units.")
End Sub
Component example
Sub Main()
Application.ShowMessage("The width of the grid is " & _
ThisForm.Components("grid1").Width & " units.")
End Sub