Next: , Previous: , Up: Internal Routines   [Contents][Index]

15.5.755 xmpulldownmenu

xmpulldownmenu(parent, cascade, callback, font, color, item1 [,...])

[motif package] Creates a pull-down menu widget. parent must be the widget ID of a menu bar widget, and cascade the widget ID of one of the cascade buttons in the menu bar widget. The code to be executed when any one of the pull-down menu entries is selected is contained in callback (a string). The pull-down menu entry labels are contained in item1 and further arguments. These labels are displayed in the indicated font and color (or defaults, if these arguments are not strings or are null strings).

The callback string is the same for all menu entries; the callback statement can look up the index of the selected menu item in global variable $OPTION_value.

See also: xmmenubar