Skip to content

CreatePanel

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

CreatePanel

CreatePanel:Int32 x:Int32, y:Int32, width:Int32, height:Int32, group:Int32, style:Int32=0
Parameter Mode Type Default Description
x In Int32 required Horizontal position inside the group.
y In Int32 required Vertical position inside the group.
width In Int32 required Width of the panel.
height In Int32 required Height of the panel.
group In Int32 required Window, tabber, canvas or another panel that holds it.
style In Int32 0 1 draws a frame. Add 65536 to not follow the group when it is resized. Defaults to 0.

Returns: A handle for the panel.

Description

Makes a rectangle that other gadgets can be placed on, so you can group them, hide them together or move them together. Give it a color with SetPanelColor or a picture with SetPanelImage. Style 1 draws a frame around it.

Examples

Graphics 320, 240, 32, 2
win   = CreateWindow("Panels", 10, 10, 300, 200, Desktop(), 3)
left  = CreatePanel(10, 10, 130, 140, win, 1)
right = CreatePanel(150, 10, 130, 140, win, 1)
SetPanelColor right, 180, 210, 255
CreateButton "Left", 10, 10, 100, 28, left
CreateButton "Right", 10, 10, 100, 28, right
Repeat
Until WaitEvent() = $803

Media

CreatePanel

Related Commands

CreateButton, CreateComboBox, CreateHtmlView 〔BlitzLLVM〕, CreateLabel, CreateListBox, CreateProgBar, CreateSlider, CreateTabber

Home · Command Index



Differences
Language Features
BlitzBasic
Blitz3D
BlitzPlus

Clone this wiki locally