menuitem

Name

menuitem -- Return a menuitem object with the given attributes.

Synopsis

(menuitem label #&key image-above image-left
			  (fg #f) (bg #f) (font #f)
			  extra-label action submenu hover-action unhover-action
			  hotkey-prefs)

Description

Return a menuitem object with the given attributes. LABEL is a string for the name on the item. IMAGE-ABOVE is an image object to show above the label. IMAGE-LEFT is an image object to show to the left of the label. EXTRA_LABEL is a second label shown on the item. ACTION is a menu object or a procedure; if it is a menu object, the item will popup ACTION as a sub-menu, if it is a procedure, the procedure will be invoked when the item is selected. HOVER-ACTION is an procedure to be invoked when the item is highlighted but not invoked for a moment; UNHOVER-ACTION is a procedure to be invoked after the HOVER-ACTION is invoked when the item is unhighlighted. HOTKEY-PREFS is a string listing the characters which are appropriate shortcut-keys for the item; the first not-yet-used-in-this-menu character will be used for the shortcut key for the menu item.

Implementation Notes

Module: (app scwm base)

Defined in scheme/base.scm at line 501 (CVS log)