home *** CD-ROM | disk | FTP | other *** search
- OVERVIEW
-
- Here at last is a point and click way to create Turbo Vision menus.
- Here are a few notes to help you use "Menu Designer". The "Menu
- Designer" is not hard to use, so just play with it a while and you will
- probably have no trouble.
-
- The first thing you will notice is the lack of a command menu. All the
- program commands are either in the menu design dialog box or on the
- status line. This allows the menu you are creating to be displayed at
- the top of the screen, in the standard menu position. The menus you
- create will be instantly available for view and testing. Whenever you
- insert or update a menu item your changes will be displayed.
-
- CREATING A MENU
-
- To create a menu, you work in the design dialog box. This dialog box
- displays a list box of all menu items, a list of short cut keys and
- prefixes, a help context field, and several command buttons. You enter
- menu item name in the input line labeled "Menu Text". You may enter any
- text up to 25 characters in length. To create a menu "Hot Key", precede
- the desired hot key character with an "&". This is easier to type than
- two "~" and follows the standard established by Windows resource files.
-
- The menu input line is connected to the menu list, so you can edit
- existing menu entries. To edit an existing menu item, just move to the
- list box below the field and scroll the to desired entry. The
- highlighted entry will be displayed in the "Menu Text" field for your
- editing pleasure.
-
- After entering a menu item name, you move may move to the "Short Cut
- Key" field to assign a short cut for the menu item. First, you select
- a short cut prefix, "Alt", "Ctrl", "Shift" or none, by pressing the
- desired radio button. Next, move to the key list box to select the
- actual key to use. Just scroll to the desired key, it will also be
- displayed above the list. You may not assign short cut keys to the top
- level items, the menu bar items.
-
- If you desire, you may also enter a help context for a menu item. Enter
- a number in the "Help Context" and it will be assigned to the current
- menu item.
-
- Here is a list of the commands in the menu design dialog: Insert,
- Append, Update, Delete, Cascade, Separator. THE MAIN THING TO REMEMBER
- IS THAT ALL COMMANDS WORK ON THE ITEM THAT IS CURRENTLY HIGHLIGHTED IN
- THE MENU LIST BOX.
-
- Insert - Inserts a new item, the one currently displayed in the dialog,
- immediately above the menu item highlighted in the menu list box. The
- new item is inserted with the same menu level as the highlighted item.
- As you build your menus, you will notice that sub menus are indented
- one space from thier parent menus.
-
- Append - Inserts a new item at the end of the current menu level. When
- you append a menu item, it will be inserted at the bottom of the
- current sub menu. In other words, if an item in the menu bar is
- highlighted in the list, and you add an item it will be added to the
- end of all menu bar items. If you add an item with some sub menu item
- highlighted, that item will be added to the end of the highlighted sub
- menu.
-
- Update - Saves changes made to an existing menu item. To edit an item
- scroll to it in the menu list box. All information for the highlighted
- item will be displayed for editing.
-
- Delete - Deletes the currently highlighted menu item. BE CAREFUL, this
- command will delete all sub menus cascaded from the current item.
-
- Cascade - This is the only way to create sub menus. Highlight an item
- in the list box and press "Cascade". Two new items will be added as a
- sub menu to the highlighted menu item. These items will be indented one
- space from the current item. You may edit, delete, or append to these
- items as desired.
-
- Separator - Inserts a menu separator line immediately above the
- highlighted item. You may not insert separators into the top level
- menu.
-
- USING MENUS IN YOUR TV PROGRAMS
-
- "Menu Designer" will generate an InitMenuBar method that you can copy
- right into your program's source code. It will also generate a list of
- constnat declarations for the menu commands needed. The menu command
- constants are created from your menu item names. So, depending on how
- you named your menus, you could get some duplicate identifier errors
- when you compile. Just, remove the offending declarations from the list
- of menu constants and try again (this will be fixed in a future
- update). A program, "MTEST.PAS", for testing the generated source code
- has been included.
-
- Please contact me with any comments, suggestions, problems, bugs, or
- questions.
-
- Richard Hansen
- PO Box 18571
- Saint Paul, MN 55118-0571 USA
-
- CompuServe ID 70242,3367
-
-