Checked Property (AMenu)

Returns or sets whether a check mark is displayed to the left to the object text.

Syntax

Object.Checked [ = bChecked ]

The Checked property syntax has the following parts:

 

Name

Type

Description

Object

AMenu

AMenu object

bChecked

Bool

A boolean expression that specifies whether a check mark is displayed to the left to the object text.

Where

bChecked can be one of the following:

 

Value

Description

True

Places a check mark to the left to the object text.

False *

Does not place a check mark to the left to the object text.

Comments

At design time, you can set Checked to True. A run time, you can toggle Checked on and off as part of a Click event procedure attached to a Menu control. You can also set the value of Checked in a startup procedure or in a form's Load event procedure.

For a Menu control, Checked is normally read/write at run time. But Checked is read-only for menu items that are exposed or supplied by ATEasy to add-ins, such as the Add-In Manager command on the Add-Ins menu.

Example

The following statement changes the AMenu to have a check mark:

mnu1.Checked=True

Applies to

AMenu

See Also

Grayed, Inactive