[REBOL] Re: Applying Focus
From: philb:upnaway at: 19-Feb-2002 9:19
Hi Romano,
Yes, when you use do [focus <fieldname>"] in your your layout the field's text is highlighted
(I just tried it).
Thanks for all the help guys .... these little things just make programs that little
bit more productive/user friendly.
Cheers Phil
=== Original Message ===
Hi, Allen
I think that the 'field flag should be enouph to highlit, look at the source
of focus:
....
if flag-face? face field [hilight-all face]
and the standard function:
ctx-text/hilight-all: func [face][
view*/highlight-start: head face/text
view*/highlight-end: tail face/text
]
---
Ciao
Romano