# Option Menu widget

The Option Menu widget is used to display a one-of-many choice. For instance, it is used at the top of many WorkShop Visual resource panels to control the selection of pages from the panel.

An Option Menu is more compact than a radio box and toggle button combination and is the better choice when there are more than a few items for the user to select.

The Option Menu widget created by WorkShop Visual has only the Label and Cascade Button children. Add a Pulldown Menu as a child of the Cascade Button, then and Push Buttons as children of the Menu.

For more information, consult XmCreateOptionMenu(3X) in the OSF/Motif Programmer's Reference.

NOTES

The label resource of the cascade button child in the Option Menu is used to automatically display the currently chosen item from the menu, so do not try to set the cascade label directly.

See also:

- Cascade Button widget
- Menu widget
- Push Button widget
- Row Column resource panel
- About WorkShop Visual