Handbook
Glossary
<button> ( label quot: ( button -- ) -- button )
Factor handbook
»
UI framework
»
Building user interfaces
»
Pre-made UI gadgets
»
Button gadgets
Prev:
button
Next:
<roll-button> ( label quot: ( button -- ) -- button )
Vocabulary
ui
.
gadgets
.
buttons
Inputs
label
a
gadget
quot
a
quotation
with stack effect
( button -- )
Outputs
button
a new
button
Word description
Creates a new
button
which calls the quotation when clicked. The given gadget becomes the button's only child.
See also
<border-button>
,
<command-button>
,
<roll-button>
,
<presentation>
Definition
IN:
ui.gadgets.buttons
:
<button>
( label quot: ( button -- ) -- button )
button
new-button
;