Skip to content

Read_Only_State - DfBaseEdit

Allows you to protect the contents of the buffer while still allowing users freedom to navigate

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

It is often desirable to disallow the modification of an edit area by users. The read_only_state will allow you to protect the contents of the buffer while still allowing users freedom to navigate. Only the predefined accelerator keys are subject to the read_only_state-program messages are not affected. This allows the program to manipulate the text without having to change the value of the state.

set read_only_state to true

Note that if you define your own accelerator keys that perform text modifications, they will not automatically be subject to the read_only_state unless you program them to be, as you should.

if (read_only_state(code)) procedure_return

Default is false.