HOWTO: Disabling Menu Titles and BarsLast reviewed: July 3, 1997Article ID: Q136075 |
The information in this article applies to:
SUMMARYWhen you use the SET SKIP OF command to disable a menu title or bar created using the Menu Builder, you may find the commands have no effect on your menu. This is because of the naming convention Visual FoxPro uses to name the objects in your menu. This article explains how to disable a menu title or bar successfully.
MORE INFORMATIONWhen you run a user-created menu using the DO MYMENU.MPR syntax (using the name Mymenu as an example), Visual FoxPro sets your menu to the system variable _MSYSMENU. Hence, using syntax such as SET SKIP OF MENU MYMENU .T. fails to disable your menu. Visual FoxPro now sees your menu as the _MSYSMENU, so you could successfully disable your menu by using this syntax:
SET SKIP OF MENU _MSYSMENU.Similarly, you would find it impossible to disable a menu title named QUIT using syntax such as SET SKIP OF PAD quit OF MYMENU. Visual FoxPro assigns a variable name to both the menu title and the menu, so without referencing the correct name, this syntax fails. Your menu is now known to Visual FoxPro as _MSYSMENU, that part you can fix. But you still don't know the name of the menu title or bar. There are two ways to overcome this problem.
|
Additional query words: prompt popup
© 1998 Microsoft Corporation. All rights reserved. Terms of Use. |