Skip to content

SetTextAreaText

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

SetTextAreaText

SetTextAreaText:Void textarea:Int32, text:String, pos:Int32=0, len:Int32=-1, units:Int32=1
Parameter Mode Type Default Description
textarea In Int32 required Handle of a text area.
text In String required The text to write.
pos In Int32 0
len In Int32 -1
units In Int32 1 1 counts characters, 2 counts lines. Defaults to 1.

Description

Writes text into a text area at a place. It replaces the given number of characters or lines there, so a length of 0 only inserts.

Examples

Graphics 320, 240, 32, 2
win  = CreateWindow("Insert", 10, 10, 300, 150, Desktop(), 3)
area = CreateTextArea(10, 10, 270, 90, win)
SetGadgetText area, "Hello world"
SetTextAreaText area, "big ", 6, 0
SetTextAreaText area, "HELLO", 0, 5
Repeat
Until WaitEvent() = $803

Related Commands

AddTextAreaText, CreateTextArea, FormatTextAreaText, SetTextAreaColor, SetTextAreaFont, SetTextAreaTabs, TextAreaText, TextFieldText

Home · Command Index



Differences
Language Features
BlitzBasic
Blitz3D
BlitzPlus

Clone this wiki locally