Skip to content

CheckMenu

Claude edited this page Oct 26, 2026 · 5 revisions

CheckMenu

Command Index · BlitzPlus · Menus

CheckMenu menu%

Works in: BlitzPlus

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.

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

CheckMenu

Parameter Type Default Description
menu Int required Handle of a menu item made with CreateMenu.

Related commands

Command Index · BlitzPlus · Menus

Home · Command Index


Getting started

Language

Tools


Language Features
BlitzBasic
Blitz3D
BlitzPlus
Differences

More

Clone this wiki locally