Skip to content

SetGadgetShape

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

SetGadgetShape

SetGadgetShape:Void gadget:Int32, x:Int32, y:Int32, width:Int32, height:Int32
Parameter Mode Type Default Description
gadget In Int32 required Handle of the gadget.
x In Int32 required New horizontal position.
y In Int32 required New vertical position.
width In Int32 required New width.
height In Int32 required New height.

Description

Moves and resizes a gadget, also a window. The numbers are relative to the group.

Examples

Graphics 320, 240, 32, 2
win = CreateWindow("Shape", 10, 10, 300, 140, Desktop(), 3)
b   = CreateButton("Jump", 10, 10, 100, 28, win)
Repeat
	e = WaitEvent()
	If e = $401 Then SetGadgetShape b, Rand(0, 150), Rand(0, 60), 100, 28
Until e = $803

Related Commands

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

Home · Command Index



Differences
Language Features
BlitzBasic
Blitz3D
BlitzPlus

Clone this wiki locally