Adding Separator Bars

From RAD Studio
Jump to: navigation, search

Go Up to Building Menus

Separator bars insert a line between menu items and items on a toolbar. You can use separator bars to indicate groupings within the menu list or toolbar, or simply to provide a visual break in a list.

To add a separator bar to a menu:

  1. Add a menu item as described in Adding, Inserting, and Deleting Menu Items.
  2. Type a hyphen (-) for the caption of the menu item.

You can also press the hyphen (-) key while the cursor is positioned on the menu where you want a separator to appear.

To add a separator bar onto a TActionToolBar, press the insert key and set the new item's caption to a separtor bar (|) or hyphen (-).

To add accelerators or shortcuts to menu items, see Specifying Accelerator Keys and Keyboard Shortcuts.

See Also