Mailing List Archive: 49091 messages
  • Home
  • Script library
  • AltME Archive
  • Mailing list
  • Articles Index
  • Site search
 

[REBOL] Re: Editor

From: g:santilli:tiscalinet:it at: 25-Jun-2002 11:10

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 <[g--santilli--tiscalinet--it]> -- REBOL Programmer Amigan -- AGI L'Aquila -- REB: http://web.tiscali.it/rebol/index.r