ยค oldButtonF

Types

oldButtonF :: (Graphic e, FontGen a1, Show a1, Show a2, ColorGen a2) =>
              Double ->
              Int ->
              a1 -> ColorSpec -> a2 -> [(ModState, KeySym)] -> e -> F e Click

Synopsis

oldButtonF alignment margin fname bg fg keys label

Description

oldButtonF is a simple command button displaying a text.

Input

Input message are used to relabel the button dynamically.

Output

When pressed, it will emit a Click

Arguments

alignment :: Double
How the labelled should be align horizontally in the button.
margin :: Int
Space between the button border and the label.
fname :: a1
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.)
bg :: ColorSpec
Background color.
fg :: a2
Foreground color
keys :: [(ModState, KeySym)]
Key equivalent list. Instead of clicking on the button, a combination of modifiers and a key from the list can be pressed.
label :: e
The button label.

Example

 oldButtonF aCenter 2 buttonFont (colorSpec bgColor) (colorSpec fgColor) [([Mod1],"q")] "Nisse Hult" :: (F String Click)

See Also

buttonF, menuF, toggleButtonF, radioF, buttonFont.