ReadOnly

[method icon] ReadOnly(iSet)

Makes the controls in the group read only

iSet Integer Whether to set or reset the read only status of controls in the group

Applies to: Group


[property icon] ReadOnly

Enables/disable readonly mode for the control

This is a style property that is only available in the forms designer. It is possible to modify this programmatically through the Style property in the Create event.

Applies to: Edit


[property icon] ReadOnly

Enables/disables readonly mode for the control

Boolean property

Applies to: KCMLEdit , List Box


[property icon] ReadOnly

Enables/disable readonly mode for the control

This is a style property that is only available in the forms designer. It is possible to modify this programmatically through the Style property in the Create event.

Applies to: Rich Edit

Introduced in KCML version 6.20


>

ReadOnly

This Boolean property can be used to set a listbox into a read-only mode in which the user cannot select items with the mouse or keyboard oe an edit control into a read-only mode in which the text cannot be altered or added to. For example:

.Edit1.ReadOnly = TRUE

The following could be used to determine the current ReadOnly state of the control:

State = .Edit1.ReadOnly

Read-only text is drawn using a different background color. This color can be set as a preference in the client.

All the controls in a group can be marked read-only together using the ReadOnly() group method. Specifying an argument of TRUE makes the controls in the group read only while a value of FALSE returns the controls back to the default editable/selectable mode. Groups are set up and named at design time within the Form Designer. For example the following would make the controls in the group grpControl1 read only:

.grpControl1.ReadOnly(TRUE)

See also

Edit methods, properties and events. Group methods, properties and events. KCMLEdit methods, properties and events. List Box methods, properties and events. Rich Edit methods, properties and events.