¤ oldPopupMenuF


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


oldPopupMenuF bgcolor grab fname button mods keys alts show_alt fudget


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.


Left x is ignored. Right y causes y to be passed to the argument fudget.


Left x is output if menu item x is selected. Right y is output if the argument fudget outputs y.


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 :: String
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 :: [Modifiers]
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 :: [(b1, b3)]
A list of items to choose from. Each item is paired with a list of keyboard shortcuts.
show_alt :: b1 -> b2
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.


Old. Fudget under construction. The argument list will change...