
Defines the color of text in the control, in AutoCAD® colors or Windows® system colors.
This property is a long integer and is a color.
CheckBox, DwgList, GraphicButton, Grid (Hatch), Label, ListBox, Option, OptionList, TextBox, UrlLink.
Can be passed as "ForeColor" to Control_SetProperty and Control_GetProperty's string property name where applicable.
Copy Code |
|---|
; Get the property from the control (setq Value (Odcl_Control_GetForeColor MyProject_MyForm_MyControl)) (setq Value (Odcl_Control_GetForeColor "MyProject" "MyForm" "MyControl")) |
Copy Code |
|---|
; Set the property to the control (Odcl_Control_SetForeColor MyProject_MyForm_MyControl 4) (Odcl_Control_SetForeColor "MyProject" "MyForm" "MyControl" 4) |