Skip to content

SetTextAreaColor

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

SetTextAreaColor

SetTextAreaColor textarea:Int32, red:Int32, green:Int32, blue:Int32, background:Int32=0
Parameter Type Default Description
textarea Int32 required Handle of a text area.
red Int32 required Red part, 0 to 255.
green Int32 required Green part, 0 to 255.
blue Int32 required Blue part, 0 to 255.
background Int32 0 0 sets the text color, 1 sets the background color. Defaults to 0.

Description

Sets the color of the text, or with the last parameter the color of the background, of the whole text area.

Examples

Graphics 320, 240, 32, 2
win  = CreateWindow("Colors", 10, 10, 300, 150, Desktop(), 3)
area = CreateTextArea(10, 10, 270, 90, win)
SetGadgetText area, "Green on black"
SetTextAreaColor area, 0, 0, 0, 1
SetTextAreaColor area, 0, 255, 0
Repeat
Until WaitEvent() = $803

Media

SetTextAreaColor

Related Commands

AddTextAreaText, CreateTextArea, FormatTextAreaText, LockTextArea, SetTextAreaFont, SetTextAreaTabs, SetTextAreaText, TextAreaChar

Home · Command Index



Differences
Language Features
BlitzBasic
Blitz3D
BlitzPlus

Clone this wiki locally