Microsoft KB Archive/156738

= PRB: Copy, Paste Shortcuts Work Only When Edit Menu Present =

Article ID: 156738

Article Last Modified on 12/3/2003

-

APPLIES TO


 * Microsoft Visual FoxPro 3.0 Standard Edition
 * Microsoft Visual FoxPro 3.0b Standard Edition
 * Microsoft Visual FoxPro 5.0 Standard Edition
 * Microsoft Visual FoxPro 6.0 Professional Edition

-



This article was previously published under Q156738



SYMPTOMS
When a program replaces the Visual FoxPro System Menu bar with a menu bar that does not contain an Edit menu pad, the shortcut keys to cut, copy, and paste (CTRL+X, CTRL+C and CTRL+V) no longer perform those functions.



CAUSE
Because the current system menu has no Edit pad, there will be no edit functions for the application at the time.



STATUS
This behavior is by design.



MORE INFORMATION
Shortcut keys are defined within a menu and enabled when that menu is loaded. While the CTRL+X, CTRL+C, and CTRL+V are used by most Windows applications as the shortcuts to cut, copy, and paste, they accomplish those functions only as menu pop-up bar shortcuts. If the system menu has no Edit pad or other edit functionality, those shortcut keys will not be available.

Steps to Reproduce Behavior
In the Visual FoxPro for Windows Help file topic for [ASCII 147]Activate Popup,[ASCII 148] there is a sample program named Actipop.prg that modifies the default menu and demonstrates that the editing shortcut functionality no longer functions.

 Copy the code for the Actipop.prg file from the Help file example. Paste the code in a program file of the same name. Set the default path to the directory where this file is saved. Run it with the program file visible and note that the system menu changes. Click any text shown in the program editing window. Try to use the clipboard features (CTRL+C,X,V) by cutting or copying the selected text from one part of the open window to another.  To restore your system menu, type the following commands in the Command window: SET SYSMENU NOSAVE SET SYSMENU TO DEFAULT </li></ol>

Additional query words: kbdsd VFoxWin

Keywords: KB156738

-

[mailto:TECHNET@MICROSOFT.COM Send feedback to Microsoft]

© Microsoft Corporation. All rights reserved.