¤ oldPopupMenuF
Types
oldPopupMenuF :: (Graphic c, Eq a) => ColorName -> Bool -> FontName -> Button -> ModState -> [(ModState, KeySym)] -> [(a, b)] -> (a -> c) -> F d e -> F (Either [(a, f)] d) (Either a e)
Synopsis
oldPopupMenuF bgcolor grab fname button mods keys alts show_alt fudget
Description
oldPopupMenuF provides a popup menu. The menu is normally hidden, but pops up when
the a specific mouse button is pressed over the fudget to which the popup
menu is attached, so that an item can be picked from the
menu. The menu is removed as soon as the mouse button is released.
Input
Left x is ignored. Right y causes y to be passed
to the argument fudget.
Output
Left x is output if menu item x is selected.
Right y is output if the argument fudget outputs y.
Arguments
bgcolor :: ColorName- Background color.
bgColor is a good default.
grab :: Bool- Use grab? If
True the menu will pop up even if the
pointer is over a subwindow.
fname :: FontName- Name of the font to use for text. Fonts can be examined by using the
command
xfontsel. (This argument is likely to disappear in the
near future. It will be replaced by some resource mechanism.)
button :: Button- The mouse button that should trigger the menu.
mods :: ModState- The modifier keys that must be pressed to trigger the menu.
keys :: [(ModState, KeySym)]- Keyboard shortcuts that should trigger the meny. (Use only
non-repeating keys, e.g. the Meta key.)
alts :: [(a, b)]- A list of items to choose from. Each item is paired with a
list of keyboard shortcuts.
show_alt :: a -> c- A function that determines the text string that is shown
for each item in the menu
fudget :: F d e- The fudget in which the popup menu will be available.
See Also
buttonF,
menuF,
radioGroupF,
toggleButtonF,
menuFont,
bgColor.
Bugs
Old. Fudget under construction. The argument list will change...