ObjectDCL Banner

ReadOnly Property

Description

Sets the text control as read only.

Type

This property is a boolean. Set to T to prevent changes or Nil to allow them.

Applies For

TextBox.

Invoking From Old API

Can be passed as "ReadOnly" 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_GetReadOnly MyProject_MyForm_MyControl))

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

Setter Example

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

(Odcl_Control_SetReadOnly "MyProject" "MyForm" "MyControl" Nil)