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
bgColor
is a good default.
grab :: Bool
True
the menu will pop up even if the
pointer is over a subwindow.
fname :: String
xfontsel
. (This argument is likely to disappear in the
near future. It will be replaced by some resource mechanism.)
button :: Button
mods :: [Modifiers]
keys :: t (ModState, KeySym)
alts :: [(b1, b3)]
show_alt :: b1 -> b2
fudget :: F c d