Hi Jim,
On Tuesday, June 25, 2002, 3:15:27 AM, you wrote:
jcn> I wonder if anyone knows how to keep the focus in a text area when you click on a
button.
That happens when the area hase the DIRTY? flag on; to avoid that,
you should either disable the event function installed by RT:
>> print mold system/view/screen-face/feel/event-funcs
[func [face event /local fac][
if all [
system/view/focal-face
event/type = 'down
not within? event/offset win-offset? system/view/focal-face
system/view/focal-face/size
system/view/focal-face/dirty?
] [
fac: system/view/focal-face
unfocus
do-face fac none
fac/dirty?: none
]
event
]]
or maybe just patch it so that it saves the caret position for
you.
Regards,
Gabriele.
--
Gabriele Santilli <[EMAIL PROTECTED]> -- REBOL Programmer
Amigan -- AGI L'Aquila -- REB: http://web.tiscali.it/rebol/index.r
--
To unsubscribe from this list, please send an email to
[EMAIL PROTECTED] with "unsubscribe" in the
subject, without the quotes.