ObjectDCL Banner

Caption Property

Description

Sets the text displayed in a control.

Type

This property is a string.

Applies For

CheckBox, Frame, GraphicButton, Label, Option, TextButton, UrlLink.

Invoking From Old API

Can be passed as "Caption" 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_GetCaption MyProject_MyForm_MyControl))

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

Setter Example

CopyCode imageCopy Code
; Set the property to the control
(Odcl_Control_SetCaption MyProject_MyForm_MyControl "New Caption")

(Odcl_Control_SetCaption "MyProject" "MyForm" "MyControl" "New Caption")