Skip to content

EnableGadget

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

EnableGadget

EnableGadget:Void gadget:Int32
Parameter Mode Type Default Description
gadget In Int32 required Handle of the gadget.

Description

Turns a gadget that was disabled with DisableGadget back on.

Examples

Graphics 320, 240, 32, 2
win = CreateWindow("Enable", 10, 10, 300, 140, Desktop(), 3)
a   = CreateButton("Unlock", 10, 10, 120, 28, win)
b   = CreateButton("Locked", 10, 50, 120, 28, win)
DisableGadget b
Repeat
	e = WaitEvent()
	If e = $401 And EventSource() = a Then EnableGadget b
Until e = $803

Related Commands

ActivateGadget, AddGadgetItem, ClearGadgetItems, CountGadgetItems, DisableGadget, FreeGadget, HideGadget, ShowGadget

Home · Command Index



Differences
Language Features
BlitzBasic
Blitz3D
BlitzPlus

Clone this wiki locally