Skip to content

SetPanelColor

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

SetPanelColor

SetPanelColor:Void panel:Int32, red:Int32, green:Int32, blue:Int32
Parameter Mode Type Default Description
panel In Int32 required Handle of a panel.
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.

Description

Fills a panel with a color.

Examples

Graphics 320, 240, 32, 2
win = CreateWindow("Color", 10, 10, 300, 140, Desktop(), 3)
p   = CreatePanel(10, 10, 100, 80, win)
SetPanelColor p, 255, 120, 0
Repeat
Until WaitEvent() = $803

Related Commands

SetButtonState, SetGadgetFont, SetGadgetLayout, SetGadgetShape, SetGadgetText, SetPanelImage, SetSliderRange, SetSliderValue

Home · Command Index



Differences
Language Features
BlitzBasic
Blitz3D
BlitzPlus

Clone this wiki locally