ObjectDCL Banner

BackColor Property

Description

The background color of the control, in AutoCAD® colors or Windows® system colors.

Type

This property is a long integer and is a color.

Applies For

BlockList, BlockView, CheckBox, DwgList, DwgPreview, GraphicButton, EditableGrid, Grid (Hatch), Label, ListBox, ListView, Option, OptionList, PictureBox, SlideView, TextBox, UrlLink.

Invoking From Old API

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

Remarks

A TextBox with the multi-line style or OnReturnPressed event does not use this setting.

Getter Example

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

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

Setter Example

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

(Odcl_Control_SetBackColor "MyProject" "MyForm" "MyControl" 4)

See Also

ForeColor