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:
- Assign the CTRL+P key combination as the shortcut key for the Print
option of the File menu in the menu generator.
- 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
- 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
- Create a quick menu using the menu generator.
- Choose Edit from the File menu.
- Scroll down the options list to the '\<File' listing.
- Click the Options box.
- In the Options dialogue box, click the Shortcut key check box.
- Hold down the Control key, and press the P key.
- Click OK, to move back to the menu design window.
- Generate the menu, and run the .MPR that was created.
- Note that pressing CTRL+P does not display the Print dialogue box.
|