Home > Language Reference > Classes > Display
ForeColor Property
Foreground color.
Syntax
Public Property Get ForeColor() As Long
Public Property Let ForeColor(ByVal lColor As Long)
| Parameter | Description |
| lColor | New foreground color. |
Remarks
The ForeColor property indicates the foreground color used for the borders of drawings made on the Display object. By default, the foreground color is black.
A color is specified with a value of type Long whose first byte contains the intensity of blue, the second the intensity of green and the third the intensity of red. This value could be defined using the Color function, or using the Built-in Color Constants. For more information, refer to the Color Handling chapter.
You can modify the background colors and the text colors using the BackColor and TextColor properties respectively.
System requirements
| System | Minimal version | Remarks |
| Palm OS | Palm OS 3.0 | N/A |