PRB: CTRL+P Shortcut Does Not Display Print Dialog Box

Last reviewed: June 27, 1995
Article 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.

MORE INFORMATION

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


THE INFORMATION PROVIDED IN THE MICROSOFT KNOWLEDGE BASE IS PROVIDED "AS IS" WITHOUT WARRANTY OF ANY KIND. MICROSOFT DISCLAIMS ALL WARRANTIES, EITHER EXPRESS OR IMPLIED, INCLUDING THE WARRANTIES OF MERCHANTABILITY AND FITNESS FOR A PARTICULAR PURPOSE. IN NO EVENT SHALL MICROSOFT CORPORATION OR ITS SUPPLIERS BE LIABLE FOR ANY DAMAGES WHATSOEVER INCLUDING DIRECT, INDIRECT, INCIDENTAL, CONSEQUENTIAL, LOSS OF BUSINESS PROFITS OR SPECIAL DAMAGES, EVEN IF MICROSOFT CORPORATION OR ITS SUPPLIERS HAVE BEEN ADVISED OF THE POSSIBILITY OF SUCH DAMAGES. SOME STATES DO NOT ALLOW THE EXCLUSION OR LIMITATION OF LIABILITY FOR CONSEQUENTIAL OR INCIDENTAL DAMAGES SO THE FOREGOING LIMITATION MAY NOT APPLY.

Last reviewed: June 27, 1995
© 1998 Microsoft Corporation. All rights reserved. Terms of Use.