Skip to content

DisableMenu

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

DisableMenu

DisableMenu:Void menu:Int32
Parameter Mode Type Default Description
menu In 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



Differences
Language Features
BlitzBasic
Blitz3D
BlitzPlus

Clone this wiki locally