¤ oldPopupMenuF

Types

oldPopupMenuF :: (Eq b2, Graphic b1, Foldable t) =>
                 ColorName ->
                 Bool ->
                 FontName ->
                 Button ->
                 ModState ->
                 t (ModState, KeySym) ->
                 [(b2, b3)] -> (b2 -> b1) -> F c d -> F ([(b2, b4)]  c) (b2  d)

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 :: t (ModState, KeySym)
Keyboard shortcuts that should trigger the meny. (Use only non-repeating keys, e.g. the Meta key.)
alts :: [(b2, b3)]
A list of items to choose from. Each item is paired with a list of keyboard shortcuts.
show_alt :: b2 -> b1
A function that determines the text string that is shown for each item in the menu
fudget :: F c d
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...