Usage and Syntax for SET MARK OF CommandLast reviewed: June 27, 1995Article ID: Q98926 |
The information in this article applies to:
SUMMARYThe SET MARK OF command is used to place a mark character before a pad or option in user-defined menus and/or popups. A mark character is a single character that is placed to the left of a menu bar pad or popup option. This mark character may be used to indicate that a certain condition exists, for example, an option that is controlled by the pad is on or off, or an option is available for use.
MORE INFORMATIONThe syntax of the SET MARK OF command for menus and popups is
SET MARK OF [MENU|POPUP] <expN1> TO <expC1>|<expL1>where <expN1> is the respective menu or popup name, <expC1> is the mark character, and <expL1> is a logical value to toggle the mark on or off. The syntax for menu pads or menu bars (options) is
SET MARK OF [PAD|BAR] <expN2> OF <expN3> TO <expC2>|<expL2>where <expN2> is the popup name for popups or bar number for bars, <expN3> is the pad or popup name, <expC2> is the mark character, and <expL2> is a logical value to toggle the mark on or off. For example, to place an asterisk (*) in front of the first bar of a menu popup called "Application," do the following.
DEFINE MENU mainmenu DEFINE PAD APPLICATION OF mainmenu PROMPT '\<Application' ON SELECTION PAD APPLICATION OF mainmenu DO defpop ACTIVATE MENU mainmenu PROC defpop DEFINE POPUP appop MARGIN DEFINE BAR 1 OF appop PROMPT '\<Customer Viewer' DEFINE BAR 2 OF appop PROMPT '\<Invoice Viewer' SET MARK OF BAR 1 OF appop .T. SET MARK OF BAR 1 OF appop TO "*" SET MARK OF BAR 2 OF appop TO CHR(182) SET MARK OF BAR 2 OF appop .T. ON SELECTION POPUP appop WAIT WIND PROMPT() ACTIVATE POPUP appop |
Additional reference words: FoxDos FoxWin 2.50 2.00 2.50a
© 1998 Microsoft Corporation. All rights reserved. Terms of Use. |