Skip to content

SetTextAreaColor

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

SetTextAreaColor

SetTextAreaColor:Void textarea:Int32, red:Int32, green:Int32, blue:Int32, background:Int32=0
Parameter Mode Type Default Description
textarea In Int32 required Handle of a text area.
red In Int32 required Red part, 0 to 255.
green In Int32 required Green part, 0 to 255.
blue In Int32 required Blue part, 0 to 255.
background In 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