| TE_indicateReadOnly | Function (ROM Call 0xAA)

textedit.h

void TE_indicateReadOnly (TEXT_EDIT *te);

Indicates read-only mode of the editor.

TE_indicateReadOnly indicates read-only mode of the editor (associated with the structure pointed to by te) by disabling commands "Cut", "Paste", "Clear" and "Del" in all menus registred with the current applications (see EV_registerMenu), and setting the status line (using ST_readOnly). Note that this command works only if the editor is opened in read-only mode (i.e. if TE_READ_ONLY is set in the parameter Flags of the TE_open function). Also note that you need to call ST_readOnly manually later, when you decide to remove the read-only indicator from the status line.

Uses: EV_setCmdState, ST_readOnly