[REBOL] Re: Cursor
From: agem:crosswinds at: 2-Jul-2001 1:00
RE: [REBOL] Cursor
[hijim--pronet--net] wrote:
> Content-Type: text/plain; charset=us-ascii
> Content-Transfer-Encoding: 7bit
>
> I have two questions. First, is there a way to use the function keys
> and/or the alt-keys in the manner of key #"^p" [write clipboard://
> <P>
> ]
>
> Second, when using a text area in REBOL/View, is there a word that keeps
> track of the cursor position? I would like to use it to skip to that
> position and insert a string such as "<P>". I think I know how to do
> this if I can access the cursor position in the file.(A related question
> would be:
>
> I'm working on an editor that will insert html tags at the cursor
> position when I use a hotkey. As it stands now, I can use some of the
> control keys to copy to the clipboard. I can then insert the tags with
> ctrl-v. It works, but it's not very elegant.
>
> I'll attach the script for the editor. Don't try the slider. It doesn't
> work. I just put it in to see if I could figure out how to make it work
> using a couple of example scripts. I haven't been successful yet.
>
> Any help appreciated,
system/view/caret is current cursor and system/view/focal-face
its face.
so if your-face = system/view/focal-face
you can insert system/view/caret "some text"
> Jim
-Volker