HOWTO: Providing Edit Menu Functions in a Top-Level FormLast reviewed: August 6, 1997Article ID: Q157160 |
The information in this article applies to:
SUMMARYThis article describes how you can provide Edit menu functionality, such as Cut, Copy, and Paste, to a Top-Level form without actually using a visual menu bar and pad on the form. If you do not include any of the System menu items, the Top-Level Form loses the functionality of the System menu because it runs as a "separate" application outside of the Visual FoxPro environment.
MORE INFORMATIONSometimes, you may want to create an application that does not require a main menu, but you want to have the ability to cut, copy, or paste in a text box or edit box field from within the form. In previous versions of the FoxPro, you need to include the Edit menu in your application. However, this is no longer necessary in Visual FoxPro 5.0. The following example shows how you can create a form that can invoke Cut, Copy, or Paste functionality without having the Edit menu visible.
Following is another example that uses the SYS(1500) function to accomplish the same behavior as above. SYS(1500), a new function, allows you to call a menu bar function without having the menu bar available:
REFERENCESFor more information about using the SYS(1500) function, please see the following article(s) in the Microsoft Knowledge Base:
ARTICLE-ID: Q155847 TITLE : How To Activate a System Menu Item in Visual FoxPro 5.0 Keywords : FxtoolAccessory vfoxwin kbtool Version : 5.0 Platform : WINDOWS Issue type : kbhowto |
================================================================================
© 1998 Microsoft Corporation. All rights reserved. Terms of Use. |