<ControlName>.Colors

<< Click to Display Table of Contents >>

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

<ControlName>.Colors

 

Description

 

Allows assigning foreground and background color to the control at the same time.

 

Syntax

 

' Set

<controlName>.Colors = rgbValueForeground, rgbValueBackground

 

Returns

 

None

 

Parameters (Set only)

 

Name

Type

Optional

Meaning

rgbValueForeground

Number

No

RGB color value

rgbValueBackground

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.Colors = RGB(0, 255, 0), RGB(0, 0, 0)