Button gadgets - Factor Documentation (original) (raw)
The ui.gadgets.buttons vocabulary implements buttons. Buttons respond to mouse clicks by invoking a quotation.
button
There are many ways to create a new button:
( label quot: ( button -- ) -- button )
( label quot: ( button -- ) -- button )
( label quot: ( button -- ) -- button )
( label quot: ( button -- ) -- button )
Gadgets for invoking commands:
( target gesture command -- button )
Button appearance can be customized:
Button constructors take label specifiers as input. A label specifier is either a string, an array of strings, a gadget or f.
See also
, Commands