factor/extra/ui/gadgets/alerts/alerts.factor

4 lines
386 B
Factor
Raw Normal View History

2009-04-25 00:23:35 -04:00
USING: accessors ui ui.gadgets ui.gadgets.labels ui.gadgets.buttons ui.gadgets.packs locals sequences fonts io.styles ;
2009-03-09 21:34:56 -04:00
IN: ui.gadgets.alerts
2009-04-25 00:23:35 -04:00
:: alert ( quot string -- ) <pile> { 10 10 } >>gap 1 >>align string <label> T{ font { name "sans-serif" } { size 18 } } >>font { 200 100 } >>pref-dim add-gadget
"okay" [ close-window ] quot append <border-button> add-gadget "" open-window ;