UnlockTextArea textarea
Parameters
| textarea - text area gadget to make editable again |
Description
|
Makes a locked text area editable by the user again. Requires Extended language mode. The undo for LockTextArea. While locked, a text area is display-only for the user - no typing, no pasting - though it still scrolls, still lets text be selected and copied, and still obeys every program command. UnlockTextArea hands the keyboard back. The classic pattern is a pane that is sometimes a viewer and sometimes an editor: lock the notes pane while a cutscene preview plays, unlock it when the user hits Edit. Or keep a build log locked permanently and never call this at all. Text areas start out unlocked, and unlocking one that is not locked is harmless. When the user edits an unlocked area, each change posts a critical gadget-action event ($401) with EventData 1. The world editor shell sample shows the locked-pane pattern this releases. See also: LockTextArea, CreateTextArea, SetTextAreaText, AddTextAreaText. |
Index