Current location - Recipe Complete Network - Complete cookbook - Recipe editing artifact
Recipe editing artifact
VB6.0 provides a convenient menu editor tool for menu design, that is, menu editor, which can be used to make the required menu conveniently. Now, this article introduces its usage.

Start the menu editor

Use the Menu Editor to create a custom menu for your application and define its properties.

Select a form first, and then start the menu editor. There are three ways to start it:

1. Use the menu [Tools]/[Menu Editor]

2. Use toolbar buttons toolbar shortcuts

3. Keyboard shortcut CTRL+E

After startup, the menu design window pops up.

"Title" item: You can enter the menu name or command name in the provided text input box, and these names will appear in the menu. The input is also displayed in the display window below the design window.

Name item: You can enter the control name of the menu item in the text input box. The control name is an identifier, which is only used to access menu items in the code, and it does not appear in the menu.

"Index" item: When several menu items use the same name, they are grouped into a control array; You can specify a numerical value to determine the position of each menu item in the control array. This position is independent of the screen position of the control.

"Shortcut key" item: Allows you to select a shortcut key for each menu item.

"Help context ID" item: When making a help menu, the context ID is allowed to specify a unique value.

"Coordinate Location" item: allows you to select the negotiated location attribute of the menu. This property determines whether and how the menu is displayed in the container form.

"Check" item: Allow setting a check mark on the left side of the menu item.

"Effective" item: determines the effective status of the menu. This option can decide whether to make the menu respond to the event, and if you want this item to be invalid, you can also clear the event.

"Visible" item: determines the visible state of the menu, that is, whether menu items are displayed on the menu.

"Show window list" item: determines whether to display a list box containing multiple document file child windows when using multiple document applications.

Next button: Move the selection to the next line.

Insert button: Inserts a line above the currently selected line in the list box. Inserts a menu item at the current position.

Delete button: Delete the currently selected line. Delete menu items.

Menu List: This list box displays a hierarchical list of menu items. Indent submenu items to indicate their hierarchical position or level.

Right Arrow: Each click moves the selected menu one level to the right, thus creating a four-word menu level.

"Left Arrow": Each click moves the selected menu up one level to create a four-character menu level.

"Up Arrow": Each click moves the selected menu item up one position in the menu at the same level.

"Down Arrow": Each click will move the selected menu item down one position in the menu at the same level.

OK: Close the menu editor and modify the last selected form.

Cancel: Closes the menu editor and cancels all changes.