How To Modify a Shortcut Menu at Run Time (155403)
The information in this article applies to:
- Microsoft Visual FoxPro for Windows 5.0
- Microsoft Visual FoxPro for Windows 6.0
This article was previously published under Q155403 SUMMARY
The Visual FoxPro menu generator, Genmenu.prg, now contains a new
generator directive to accommodate support for the new shortcut menus. The
generator directive is called #PREPOP. Normally, GENMENU adds the contents
of the Cleanup snippet at the end of the menu definition. With shortcut
menus, the ACTIVATE POPUP command is inserted prior to the contents of the
Cleanup snippet. Therefore, none of the Cleanup code executes until after
the menu is deactivated. The #PREPOP generator directive places the
Cleanup code (not including Procedures or functions) prior to the ACTIVATE
POPUP command. This new functionality allows you to disable, enable, mark,
or unmark menu items at run time.
Modification Type: | Minor | Last Reviewed: | 7/1/2004 |
---|
Keywords: | kbBuilder kbhowto KB155403 |
---|
|