<ControlName>.X

<< Click to Display Table of Contents >>

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

<ControlName>.X

 

Description

 

Allows assigning/retrieving the x component of the position of the control specified via control variable.

 

Syntax

 

' Set

<controlName>.X = coordinateX

 

' Get

coordinateX = <controlName>.X

 

 

Returns (Get only)

 

Number, x-coordinate of the control

 

Parameters (Set only)

 

Name

Type

Optional

Meaning

coordinateX

Number

No

x component of the position of the control

 

Remarks

 

Restrictions

 

See also

 

Examples

 

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

 

' Moving the control to 10 pixels from the left in the client area

closeButton.X = 10