Skip to content

LockTextArea

Claude edited this page Oct 27, 2026 · 6 revisions
BlitzPlus

LockTextArea

LockTextArea textarea:Int32
Parameter Type Default Description
textarea Int32 required Handle of a text area.

Description

Holds back redrawing of a text area while you change a lot of it, which is faster and does not flicker. Call UnlockTextArea afterwards.

Differences

  • While a text area is locked it sends no events for the changes you make.

Examples

Graphics 320, 240, 32, 2
win  = CreateWindow("Lock", 10, 10, 300, 150, Desktop(), 3)
area = CreateTextArea(10, 10, 270, 90, win)
LockTextArea area
For i = 1 To 200
	AddTextAreaText area, "Line " + i + Chr$(13)
Next
UnlockTextArea area
Repeat
Until WaitEvent() = $803

Related Commands

AddTextAreaText, CreateTextArea, FormatTextAreaText, SetTextAreaColor, SetTextAreaFont, SetTextAreaTabs, SetTextAreaText, UnlockTextArea

Home · Command Index


Getting started

Language

Tools


Language Features
BlitzBasic
Blitz3D
BlitzPlus
Differences

More

Clone this wiki locally