ObjectDCL Banner

ForeColor Property

Description

Defines the color of text in the control, in AutoCAD® colors or Windows® system colors.

Type

This property is a long integer and is a color.

Applies For

CheckBox, DwgList, GraphicButton, Grid (Hatch), Label,   ListBox, Option, OptionList, TextBox, UrlLink.

Invoking From Old API

Can be passed as "ForeColor" to Control_SetProperty and Control_GetProperty's string property name where applicable.

Getter Example

CopyCode imageCopy Code
; Get the property from the control
(setq Value (Odcl_Control_GetForeColor MyProject_MyForm_MyControl))

(setq Value (Odcl_Control_GetForeColor "MyProject" "MyForm" "MyControl"))

Setter Example

CopyCode imageCopy Code
; Set the property to the control
(Odcl_Control_SetForeColor MyProject_MyForm_MyControl 4)

(Odcl_Control_SetForeColor "MyProject" "MyForm" "MyControl" 4)

See Also

BackColor