<ControlName>.ForeColor

<< Click to Display Table of Contents >>

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

<ControlName>.ForeColor

 

Description

 

Allows assigning foreground color to the control.

 

Syntax

 

' Set

<controlName>.ForeColor = rgbValue

 

Returns

 

None

 

Parameters (Set only)

 

Name

Type

Optional

Meaning

rgbValue

Number

No

RGB color value

 

Remarks

 

Restrictions

 

Currently set only.

 

Works only for some controls.

 

See also

 

Examples

 

control add label name "myTitle", hDlg, %lTitle"", 5, 5, 100, 25

 

' No need to use hDlg, %lTitle, you can use the name directly

myTitle.ForeColor = RGB(0, 255, 0)