Skip to content

DisableMenu

Claude edited this page Oct 27, 2026 · 7 revisions
BlitzPlus

DisableMenu

DisableMenu menu:Int32
Parameter Type Default Description
menu Int32 required Handle of a menu or item.

Description

Greys out a menu item so it cannot be chosen and sends no events. EnableMenu brings it back.

Examples

Graphics 320, 240, 32, 2
win  = CreateWindow("Disabled", 10, 10, 300, 150, Desktop(), 15)
file = CreateMenu("File", 0, WindowMenu(win))
CreateMenu "Open", 1, file
save = CreateMenu("Save", 2, file)
DisableMenu save
UpdateWindowMenu win
Repeat
Until WaitEvent() = $803

Media

DisableMenu

Related Commands

CheckMenu, CreateMenu, EnableMenu, MenuChecked, MenuEnabled, MenuText, SetMenuText, UncheckMenu

Home · Command Index


Getting started

Language

Tools


Language Features
BlitzBasic
Blitz3D
BlitzPlus
Differences

More

Clone this wiki locally