<ControlName>.CW

<< Click to Display Table of Contents >>

Navigation:  ThinBASIC Modules > UI (User Interface) > CONTROLS > Control Pseudo-object Methods and Properties >

<ControlName>.CW

 

Description

 

Allows assigning/retrieving the client width of the control specified via control variable.

 

Syntax

 

' Set

<controlName>.CW = newClientWidth

 

' Get

currentClientWidth = <controlName>.CW

 

 

Returns (Get only)

 

Number, client width of the control

 

Parameters (Set only)

 

Name

Type

Optional

Meaning

newClientWidth

Number

No

client width of the control

 

Remarks

 

Restrictions

 

See also

 

Examples

 

control add button name "closeButton", hDlg, %IDCANCEL"", 5, 5, 100, 25

 

' Changing the client width to 200

closeButton.CW = 200