ObjectDCL Banner

Enabled Property

Description

When T the control is usable by the user, when set to Nil the control is grayed out and unusable.

Type

This property is a boolean. T to enable. Nil to disable.

Applies For

AngleSlider, Animation, BlockList, BlockView, CheckBox, ComboBox, DwgList, DwgPreview, EditableGrid, Frame, GraphicButton, Grid (Hatch), HtmlControl, ImageCombo, Label, ListBox, ListView, MonthPicker, Option, OptionList, PictureBox, ProgressBar, Rectangle, ScrollBar, SliderBar, SlideView, SpinButton, Splitter, TabControl, TextBox, TextButton, TreeControl, UrlLink.

Invoking From Old API

Can be passed as "Enabled" 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_GetEnabled MyProject_MyForm_MyControl))

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

Setter Example

CopyCode imageCopy Code
; Set the property to the control
(Odcl_Control_SetEnabled MyProject_MyForm_MyControl T)

(Odcl_Control_SetEnabled "MyProject" "MyForm" "MyControl" Nil)

See Also

Visible