Last active
December 17, 2015 13:29
-
-
Save rebolek/5618033 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 [] | |
;print "" | |
stylize [ | |
dragger: box [ | |
facets: [ | |
init-size: 100x100 | |
max-size: 100x100 | |
] | |
actors: [ | |
on-click: [ | |
if arg/type = 'down [ | |
return init-drag face arg/offset | |
] | |
if arg/type = 'up [ | |
] | |
] | |
on-drag: [ | |
face/gob/offset: arg/offset - arg/base | |
show face/gob | |
] | |
] | |
] | |
] | |
view [ | |
hpanel 200x200 red [ | |
dragger | |
] on-drop [ | |
append-content face arg/face | |
return true | |
] | |
hpanel 200x200 blue on-drop [ | |
append-content face arg/face | |
return true | |
] | |
] |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment