Read_Only_State - DfBaseRichEdit
Determines whether users may edit the content of the control
Type: Property
Access: Read/Write
Data Type: Boolean
Parameters: None
Syntax
Property Boolean Read_Only_State
| Access Type | Syntax |
|---|---|
| Read Access: | Get Read_Only_State to BooleanVariable |
| Write Access: | Set Read_Only_State to BooleanVariable/Value |
Description
Read_Only_State allows protection of the content of the control while still allowing users freedom to navigate and perform operations that do not edit the contents of the control, such as copying text. This is useful for displaying existing text, such as an RTF document, in the control.
Read_Only_State does not prohibit programmatic changes to the control, only changes via the user interface, such as typing, cutting or deleting text.
The Read method reads RTF document and displays it in the control.
Sample
This sample sets control oRichEdit1 to read only.
set Read_Only_State of oRichEdit1 to True
Sample
This sample sets control oRichEdit1 to allow read and write access.
set Read_Only_State of oRichEdit1 to False