[REBOL] Re: Focus (carret?) - focus face, unfocus, system/view/focal-face
From: arolls:bigpond:au at: 28-Aug-2001 2:18
Use FOCUS:
view layout [
across
label "f1" f1: field "hello" return
label "f2" f2: field "fleurs"
below
button "print focal-face" [probe system/view/focal-face/var]
do [focus f1]
]
You can find out which of your faces has the focus
by comparing to system/view/focal-face, like this:
find [f1 f2] system/view/focal-face
It's also good to UNFOCUS sometimes,
you should read that in some nice docs at rebol.com:
Section 3.5 of http://www.rebol.com/how-to/fields.html
By the way, it should be "caret" with one #"r".
(I wouldn't want you to search around fruitlessly
for "carret".)