Set Mark Of, MrkBar(), MrkPad()
The SET MARK OF command (not to be confused with SET MARK TO) lets you put a checkmark next to a menu bar or pad. The two functions ask whether an item is marked.
Usage |
SET MARK OF MENU MenuName [ TO ] cMark | lMarkIt SET MARK OF PAD PadName OF MenuName [ TO ] cMark | lMarkIt SET MARK OF POPUP PopupName [ TO ] cMark | lMarkIt SET MARK OF BAR nBar OF PopupName [ TO ] cMark | lMarkIt |
You can mark system menu items, either at the popup or the bar level. The secret is to use their built-in names. For example, to mark all the bars of the Edit menu, you'd use SET MARK OF POPUP _MEdit .T. To mark individual bars, you have to use their bar numbers. For example, use SET MARK OF BAR _med_undo .T. to mark the Edit-Undo menu bar. Of course, we have no idea why you'd ever want to mark system menu bars. |
Example |
SET MARK OF BAR 3 OF MyPopup TO .T. |
Usage |
lIsMarked = MRKBAR( cPopupName, nBar | SystemBarName ) lIsMarked = MRKPAD( cMenuName, cPadName) |
Example |
* See GETBAR() |
See Also |
Define Bar, Define Menu, Define Pad, Define Popup, GetBar(), GetPad(), Menus |