### Menu Styles

The Menu Styles dialog defines, edits and deletes action bar and sub-menu items. A list box will display the currently defined menu items from which you can select the item to edit.

You must set the menu type, style, attributes, and base style for each menu item. If you select a base style of Bitmap, you must also provide the necessary code for loading the bitmap from the program's resources and setting its size before assigning it to the action bar item.

You can enter the text for the menu item along with the ID symbol and value in the appropriate fields. When entering the text for the menu item, you can use the tilde (~) character and the tab (\t) designations. The tab forces accelerator designations to the right of the menu. If you do enter an accelerator designation, the accelerator will automatically be placed within the accelerator table. When you add an item, the item will be added after the last item belonging to the selected parent.

Types:

- Action Bar allows the user to select a menu item which may or may not display a pull-down menu. Since the Action Bar can be selected using either the mouse or the keyboard, it is considered an interactive control and will be selected as a Help Sub-Menu Item when building the Help Sub-Table.
- Menu Item allows the user to select a menu item from a pull-down menu. Since the Sub-Menu item can be selected using either the mouse or the keyboard, it is considered an interactive control and will be selected as a Help Sub-Menu Item when building the Help Sub-Table.

Note: Action bar menu items and sub-menus are displayed in different colors to allow you to quickly distinguish each type.

Styles:

- Text designates an item as text
- Bitmap designates a menu item as a bitmap. Any text that you enter for the menu item will be ignored since the OS/2 Presentation Manager will use a bitmap that you supply as the actual menu item.
- Child system menu creates a child system menu within the action bar for applications that use a MDI type of interface
- Help specifies that when the menu item is selected, a WM_HELP message be sent to the window containing the menu item
- Separator places a dividing line between menu items. This allows you to group like menu items together.
- Break creates a multiple column pull down menu, or a multiple line action bar menu. The menu item that you associate the Break with will be the last item in the column or line.
- Break/Separator creates a multiple column menu with a separating line between the columns
- Button Separator creates an action bar menu item activated only by the mouse. The text of the action bar item is centered instead of being left justified. Note: It is possible to use the Button Separator style with pull-down menu items, but it is not recommended.
- SYSCOMMAND sends a WM_SYSCOMMAND message to the window containing the menu item
- S ub-Menu designates a pull-down menu item as a Sub-Menu. The menu item, when shown, will have an arrow on the far right indicating to the user that further menu items are available. You can create the menu items for the sub-menu using Sub-Menu in the Control pull-down menu.
- Static menu style is not used presently within OS/2 and is provided within IRE for consistency
- Owner draw draws the menu item using code defined within the owner window instead of having the system provide the drawing

Attributes:

- Checked places a check mark beside the pull-down menu item
- Disabled disables the menu item so that the user cannot select it
- Framed places a heavy border frame around the pull-down menu item
- Highlighted highlights the pull-down menu item by inverting its colors
- No Dismiss causes the menu item to remain displayed after being selected

Bidi Button

Menu Bar Bidi

Menu Bar Fonts and Colors

Add Standard Button

Arrange Button

There are Cancel, Change, Save, Delete and Add buttons in this dialog box.