Created
September 24, 2017 21:57
-
-
Save rgchris/369ee490f200fd1f1640da92663fdc46 to your computer and use it in GitHub Desktop.
Parrot Field
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
#!/usr/local/bin/rebview -iqvs | |
Rebol [ | |
Title: "Parrot Field" | |
Date: 2-Jan-2017 | |
Author: "Christopher Ross-Gill" | |
Link: http://rebolforum.com/index.cgi?f=printtopic&permalink=OneArb2-Jan-2017/11:14:53-8:00&archiveflag=archive | |
Notes: http://www.rebol.com/docs/view-face-events.html | |
] | |
view layout [ | |
style parrot-field field feel make ctx-text/edit [ | |
engage: func [face action event] compose [ | |
(:engage) face action event | |
if event/type = 'key [ | |
set-face first back find face/parent-face/pane face get-face face | |
] | |
event | |
] | |
] | |
text 200 "Test" black white | |
parrot-field 200 | |
parrot-field 200 | |
] |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Is for Rebol/View 2.7.8. Based on an answer to this question.