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

[REBOL] Re: specifiv position in area

From: moeller_thorsten:gmx at: 25-Feb-2002 18:07

Hi Brett, this is exactly what i am behind, to have a working "area" and to be able to make a selection in an other window where the selection should be inserted at the last cursor position in the area. There seem to be a problem of system/view/caret or the area itself to keep track of datainput. When i type text, the system/view/caret is as long none until i refocus the area and reset the cursor manually to a specific position in the new typed text. After that i am able to insert text at the specified position in the new lines. Before this, the insertion will always happen behind the last character of my text. The problem for an automation i see is that when i refocus the area to update the /text i loose the position of the cursor, so it will be placed after my last character. The question is, how can i determine the cursor-position before refocussing the area to place the cursor at the right position after the focus? Any supporting ideas? Thorsten