ยค oldButtonF
Types
oldButtonF :: (ColorGen p3, Show p3, Show p2, FontGen p2, Graphic p1) =>
Alignment ->
Distance ->
p2 -> ColorSpec -> p3 -> [(ModState, KeySym)] -> p1 -> F p1 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 :: Alignment
- How the labelled should be align horizontally in the button.
margin :: Distance
- Space between the button border and the label.
fname :: p2
- 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 :: p3
- 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 :: p1
- 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.