Lingo Dictionary > A-C > checkMark

 

checkMark

Syntax

the checkMark of menuItem whichItem of menu whichMenu 

Description

Menu item property; determines whether a check mark appears next to the custom menu item (TRUE) or not (FALSE, default).

The whichItem value can be either a menu item name or a menu item number. The whichMenu value can be either a menu name or a menu number.

This property can be tested and set.

Note: Menus are not available in Shockwave

Example

This handler turns off any items that are checked in the custom menu specified by the argument theMenu. For example, unCheck ("Format") turns off all the items in the Format menu.

on unCheck theMenu
	set n = the number of menuItems of menu theMenu
	repeat with i = 1 to n
		set the checkMark of menuItem i of menu theMenu to FALSE
	end repeat
end unCheck

See also

installMenu, enabled, name (menu item property), number (menu items), script, name (menu item property), number (menu items), menu