Overview of VFP menu editing in database Manual

Source: Internet
Author: User
Welcome to the Oracle community forum and interact with 2 million technical staff. Due to my working relationship, I often come into contact with Microsoft's database development tool VFP and use it to develop common application systems, the menu bar with complete functions is one of the most common tasks in VFP Application Development. The menu bar with complete functions is an important part of the system interface,

Welcome to the Oracle community forum, and interact with 2 million technical staff> due to work relations, I often come into contact with Microsoft's database development tool VFP and use it to develop common application systems. Among them, the menu bar with complete functions is one of the most common tasks in VFP Application Development. The menu bar with complete functions is an important part of the system interface,

Welcome to the Oracle community forum and interact with 2 million technical staff> enter

Due to work relationships, I often contact Microsoft's database development tool VFP and use it to develop some common application systems. Among them, the menu bar with complete functions is one of the most common tasks in VFP Application Development.

The menu bar with complete functions is an important part of the system interface and an important embodiment of user-friendly application design.

Frequently Asked Questions in the editing menu are: Set access keys, delimiters, shortcut keys, tags, and invalid statuses.

Below I will introduce their implementation methods in VFP.

1. Define the access key for the menu

The access key allows the System user to use the keyboard to operate the commands in the menu.
To add an access key to a menu, add "(<F)" after the menu name during the menu editing process. Note that "F" is required.

2. Define shortcuts and add prompt information for the menu commands

Shortcut Keys can improve the menu function and speed up system operations. The prompt information allows the System user to learn about the menu function more quickly.
To define a menu item, you can click the button under "options" during the menu editing process to bring up a dialog box, and press the key to be defined at the prompt. To add the prompt information, enter the information to be prompted in the "Information (G):" box on the right and use string quotation marks.

3. Mark the option or remove the "√" mark.

Mrkbar () is a function used to determine whether a menu is marked. If the selected return value is true, otherwise it is false. Use the setmarkof command to add or remove the menu items.
For example, you can add the following command to the menu or remove the "√" mark:
If! Mrkbar ("file f", 3)
Setmarkofbar2of file fto. t.
Command
Else
Setmarkofbar2of file fto. f.
Command
Endif


4. Add a separator to the menu

The separator line enhances the readability of the menu. To add a separator line, you only need to add the "-" symbol to the "menu name" item during the menu editing process.

5. Temporarily invalidate and restore a menu title or option

When running a program, you sometimes need to temporarily invalidate a menu and restore it after it expires. There are two implementation methods:

(1) Use the setskipof command
For example, the command to temporarily invalidate the title of the "file" menu is:
Setskipofpopup file f. t.

The recovery command is:
Setskipofpopup file f. f.

To temporarily invalidate the second item under "file", the command is:
Setskipofbar2of file f. t.
The recovery command is:
Setskipofbar2of file f. f.

(2) run the releasepopup command.

. Name of each part of the normal menu

For example, to temporarily invalidate the "file" menu, run the following command:
Releasepopup file f

To restore the invalid menu, call it again. For example, if the name of the menu file is cd1.mpx, run the following command:
Docd1.mpx

  6. Add System menu options to the menu

. Menu Designer

In VFP6.0, there are many ready-made system menu options for developers to choose from. You can use them to enrich the menu functions to improve the system functions.

. Shortcut Key settings for menu options

When editing the menu, click "insert Bar ..." In the dialog box that appears, select the required system menu.

. System Menu Options

Contact Us

The content source of this page is from Internet, which doesn't represent Alibaba Cloud's opinion; products and services mentioned on that page don't have any relationship with Alibaba Cloud. If the content of the page makes you feel confusing, please write us an email, we will handle the problem within 5 days after receiving your email.

If you find any instances of plagiarism from the community, please send an email to: info-contact@alibabacloud.com and provide relevant evidence. A staff member will contact you within 5 working days.

A Free Trial That Lets You Build Big!

Start building with 50+ products and up to 12 months usage for Elastic Compute Service

  • Sales Support

    1 on 1 presale consultation

  • After-Sales Support

    24/7 Technical Support 6 Free Tickets per Quarter Faster Response

  • Alibaba Cloud offers highly flexible support services tailored to meet your exact needs.