TextField.ReadOnly

From Xojo Documentation

Property (As Boolean )
aTextField.ReadOnly = newBooleanValue
or
BooleanValue = aTextField.ReadOnly

Supported for all project types and targets.

If True, the text cannot be modified.