Skip to content

LockTextArea

Narta Xaymar Dirks edited this page Oct 28, 2026 · 5 revisions
BlitzPlus

LockTextArea

LockTextArea:Void textarea:Int32
Parameter Mode Type Default Description
textarea In 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



Differences
Language Features
BlitzBasic
Blitz3D
BlitzPlus

Clone this wiki locally