checked

Type: Boolean

Availability: Read or write at any time

The checked property of the MenuItem class specifies whether a check mark is displayed next to a menu caption. If the menu item has a submenu or it is a top-level menu item, the checked property has no effect.

The checked property settings are listed in the following table.

Setting Description
true Places a check mark next to the menu command
false Removes a check mark from a menu command (the default value)

The code fragment in the following example shows the use of the checked property.

if menuItem1.caption = self.myTable.text then
    menuItem1.checked := false;
    return;
endif;