Skip to content

CheckMenu

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

CheckMenu

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



Differences
Language Features
BlitzBasic
Blitz3D
BlitzPlus

Clone this wiki locally