Home
The HyperCard Center
HyperTalk Reference
Home » HyperTalk Reference » Properties

Note: This is a work in progress and will be formatting errors. Read more about the project on the home page.

checkMark

set [the] checkMark of menuItem of ¬ menu to trueOrFalse The checkMark property returns or sets whether a check-mark character appears in front of a menu item.

It uses the  character, numToChar(18), as the default check-mark character. Click Related Topics for information about the markChar property, which lets you use characters other than the check mark.


Examples

set the checkMark of menuItem 1 of menu "File" to true
set the checkMark of first menuItem of menu 2 to false
set the checkMark of menuItem "Open Stack..." of second menu to true

Demo Script

on mouseUp
   if there is a menu "Reference"
   then set the checkMark of menuItem 1 of menu "Reference" to ¬
        not(the checkMark of menuItem 1 of menu "Reference")
 end mouseUp

Placeholders

menuItem
An expression that evaluates to one of the following:

menuItem text
menuItem posInteger
ordinal menuItem
For example:

menuItem "New"
menuItem 2
second menuItem


menu
An expression that evaluates to one of the following:

menu text
menu posInteger
ordinal menu
For example:

menu "File"
menu 2
second menu


trueOrFalse
Any expression that evaluates to the HyperTalk and AppleScript constants true or false.

For example:

true
false
the hilite of bg btn "Yes"
fld "Zip" contains "95014"
the short name of this stack is "Fred"


Related Topics

« centered | HyperTalk Reference | commandChar »

Version 0.7b1 (March 24, 2022)

Made with Macintosh

Switch to Retro View