Aracılığıyla paylaş


SET MARK OF Command

Displays or clears the mark character for menu titles or menu items. There are several versions of the syntax.

SET MARK OF MENU MenuBarName TO lExpression1
SET MARK OF POPUP MenuName1 TO lExpression2
SET MARK OF BAR nMenuItemNumber OF MenuName2 TO lExpression3

Parameters

  • MENU MenuBarName TO lExpression1
    Specifies the name of the menu bar for which to display or clear the mark character.

    The lExpression1 parameter specifies a logical expression to evaluate in order to determine whether to display or clear the mark character for every menu title on the menu bar. If lExpression1 evaluates to True (.T.), the mark character displays next to every menu title. If lExpression1 evaluates to False (.F.), the mark character is cleared from every menu name.

  • POPUP MenuName1TO lExpression2
    Specifies the name of the menu for which to display or clear the mark character.

    The lExpression2 parameter specifies a logical expression to evaluate in order to determine whether to display or clear the mark characters for all menu items. If lExpression2 evaluates to True (.T.), the mark characters are displayed. If lExpression2 evaluates to False (.F.), the mark characters are cleared.

  • BAR nMenuItemNumberOF MenuName2TO lExpression3
    Specifies the number of the menu item and the name of the menu containing the menu item for which to display or clear the mark character.

    The lExpression3 parameter specifies a logical expression to evaluate in order to determine whether to display or clear the mark character for the menu item. If lExpression3 evaluates to True (.T.), the mark character is displayed. If lExpression3 evaluates to False (.F.), the mark character is cleared.

Remarks

The mark character is always a check mark. You cannot specify a mark character for menu titles or menu items. CheckSymbol screenshot

You cannot mark menu items created with any of the PROMPT clauses, such as FIELD, FILES, or STRUCTURE, for the DEFINE POPUP command.

To determine if a menu title has a mark character displayed, use MRKPAD( ). For more information, MRKBAR( ) Function. To determine if a menu item has a mark character displayed, use MRKBAR( ). For more information, see MRKPAD( ) Function.

For an example using SET MARK OF, see CNTBAR( ).

See Also

Reference

CNTPAD( ) Function

DEFINE BAR Command

DEFINE MENU Command

DEFINE PAD Command

SET Command Overview

Other Resources

Commands (Visual FoxPro)

Language Reference (Visual FoxPro)