Skip to content

CheckMenu

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

CheckMenu

CheckMenu menu:Int32
Parameter Type Default Description
menu Int32 required Handle of a menu item made with CreateMenu.

Description

Puts a check mark in front of a menu item, for options that are on or off. UncheckMenu takes it away and MenuChecked tells whether it is there. Titles in the menu bar cannot be checked.

Examples

Graphics 320, 240, 32, 2
win  = CreateWindow("Options", 10, 10, 300, 150, Desktop(), 15)
view = CreateMenu("View", 0, WindowMenu(win))
grid = CreateMenu("Show grid", 1, view)
UpdateWindowMenu win
Repeat
	e = WaitEvent()
	If e = $1001 And EventData() = 1 Then
		If MenuChecked(grid) Then UncheckMenu grid Else CheckMenu grid
		UpdateWindowMenu win
	EndIf
Until e = $803

Media

CheckMenu

Related Commands

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

Home · Command Index


Getting started

Language

Tools


Language Features
BlitzBasic
Blitz3D
BlitzPlus
Differences

Clone this wiki locally