Last active
August 29, 2015 14:01
-
-
Save rebolek/32e18d5ead80d8465ee3 to your computer and use it in GitHub Desktop.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
REBOL[] | |
do %load-gui.reb | |
page: to string! read http://www.goodreads.com/quotes | |
quotes: copy [] | |
parse page [ | |
some [ | |
thru "“" copy value to "”" (append quotes value) | |
] | |
to end | |
] | |
lay: layout [ | |
vp: scroll-panel 300x300 [ | |
mp: hpanel snow 1 options [ | |
spacing: 0x0 | |
max-hint: guie/max-pair | |
pane-valign: 'bottom | |
] | |
] | |
button "add" on-action [ | |
append-content mp compose [ | |
text 270 ( | |
rejoin [take quotes newline "added: " now/time newline] | |
) | |
] | |
if 10 < length? mp/gob [ | |
remove-content mp | |
] | |
] | |
] | |
view lay |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Chat window example in R3GUI