Microsoft KB Archive/129644

{| = PRB: CTRL+P Shortcut Does Not Display Print Dialog Box =
 * width="100%"|

ID: Q129644

The information in this article applies to:


 * Microsoft FoxPro for Windows, versions 2.5, 2.5a, 2.5b, 2.6, 2.6a

SYMPTOMS
When you press CTRL+P, which was previously defined as a shortcut to choosing Print from the File menu, the Print dialogue box doesn't display. In FoxPro for the Mactinosh the CTRL+P shortcut key works as expected.

WORKAROUND
The CTRL+P shortcut can be used to display the Print dialogue box in FoxPro for Windows by using this workaround:

1. Assign the CTRL+P key combination as the shortcut key for the Print

option of the File menu in the menu generator. 2. In the SETUP code snippet of the menu that uses the CTRL+P shortcut key, add this code:

ON KEY LABEL ctrl+p DO printup 3. In the CLEANUP code snippet of the menu, add the following code to  create a procedure declaration for printup:

*** Begin PROCEDURE printup declaration *** PROCEDURE printup KEYBOARD '{Alt+f}' KEYBOARD '{Uparrow}' KEYBOARD '{Uparrow}' KEYBOARD '{Enter}; *** End PROCEDURE printup declaration ***

STATUS
This behavior is by design.

Steps to Reproduce Behavior
1. Create a quick menu using the menu generator.

2. Choose Edit from the File menu.

3. Scroll down the options list to the '\<File' listing.

4. Click the Options box.

5. In the Options dialogue box, click the Shortcut key check box.

6. Hold down the Control key, and press the P key.

7. Click OK, to move back to the menu design window.

8. Generate the menu, and run the .MPR that was created.

9. Note that pressing CTRL+P does not display the Print dialogue box.

Additional reference words: FoxWin 2.50 2.50a 2.50b 2.60 2.60a cross platform choice menu Mac KBCategory: kbtool kbprb KBSubcategory: FxtoolMbuilder
 * }