<< Click to Display Table of Contents >> Navigation: ThinBASIC Modules > UI (User Interface) > CONTROLS > Control Pseudo-object Methods and Properties > <ControlName>.W |
Description
Allows assigning/retrieving the width of the control specified via control variable.
Syntax
' Set
<controlName>.W = newWidth
' Get
currentWidth = <controlName>.W
Returns (Get only)
Number, width of the control
Parameters (Set only)
Name |
Type |
Optional |
Meaning |
newWidth |
Number |
No |
width of the control |
Remarks
Restrictions
See also
Examples
control add button name "closeButton", hDlg, %IDCANCEL, "", 5, 5, 100, 25
' Changing the width to 200
closeButton.W = 200