Skip to content

DisableGadget

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

DisableGadget

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

Description

Greys a gadget out so it ignores the user and sends no events. A disabled window disables everything inside it. Combined with a child window this makes a dialog that blocks the window behind it.

Examples

Graphics 320, 240, 32, 2
win = CreateWindow("Disabled", 10, 10, 300, 140, Desktop(), 3)
ok  = CreateButton("Works", 10, 10, 120, 28, win)
no  = CreateButton("Disabled", 10, 50, 120, 28, win)
DisableGadget no
Repeat
Until WaitEvent() = $803

Media

DisableGadget

Related Commands

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

Home · Command Index



Differences
Language Features
BlitzBasic
Blitz3D
BlitzPlus

Clone this wiki locally