Set Skip Of, SkpBar(), SkpPad()
Here's another command that's easy to confuse. SET SKIP OF is about menus. SET SKIP TO is about relations. We're interested in menus right now. SET SKIP OF lets you turn individual menu components on and off. When a component is turned off, its prompt dims and the user can't choose it—sort of. SKPBAR() and SKPPAD() tell you the status of individual bars and pads.
Usage |
SET SKIP OF MENU MenuName lSkipIt SET SKIP OF PAD PadName OF MenuName lSkipIt SET SKIP OF POPUP PopupName lSkipIt SET SKIP OF BAR nBar OF PopupName lSkipIt |
In the system menu, disabling a pad prevents you from opening that pad, so you can't get to the items on the pad's associated popup. In non-system menus, that's not the case. To disable all the items below a pad, you have to SET SKIP OF the pad and of the popup associated with it. |
Example |
* Turn off the view menu SET SKIP OF PAD _MSM_View OF _MSysMenu .T. |
Usage |
lIsSkipped = SKPBAR( cPopupName, nBar ) lIsSkipped = SKPPAD( cMenuName, cPadName ) |
Example |
? SKPPAD("_MsysMenu", "_MSM_View") && Returns .T. after above ? SKPBAR("_Medit",_Med_Undo) && Test whether Undo is disabled |
See Also |