Aaaand that works! Now to add something for focusing
on it when someone clicks on it...
I'm working on something I saw in the ComputerWorld magazine -
There was an article in the technology section on Biometrics,
so I decided to attempt the Typing Patterns part. But I couldn't
seem to managed changing 'field, so I decided to stick to this,
since I've previously gotten something similar to work.
-Happy Izzy Boy
PS - I typed "Hello!" into it twice, and timing using now/time/precise,
I got the -exact- same interval between the same characters each time!
----- Original Message -----
From: "Cyphre" <[EMAIL PROTECTED]>
To: <[EMAIL PROTECTED]>
Sent: Friday, April 08, 2005 3:32 AM
Subject: [REBOL] Re: [view][focus] Weird black line..
>
> Hi Izkata,
>
> That 'weird black vertical line' is text cursor ;) Use SOURCE focus to see
> what is going on. Especially have a look at system/view/carret.
>
> If you want really own custom key handling routine without the carret a
> possible quick solution is(watch out line breaks):
>
> view/new Disp: center-face layout [
> Fiel: box 200x24 green with [
> edge: [color: red effect: 'ibevel size: 3x3]
> font: [name: {Papyrus} size: 12 color: black shadow: none align:
> 'left]
> ] feel [
> engage: func [a b c][
> if b = 'key [
> either char? c/key [
> append Fiel/text trim/head/tail to-string c/key
> system/view/caret: none
> show Fiel
> system/view/caret: tail a/text
> ][
> ]
> ]
> ]
> ]
> ]
> focus/no-show Fiel
> do-events
>
> If you wan to have the cursor displayed properly you have to write
> appropriate system/view/carret handling code to your custom keyboard
> handler.
>
> regards,
>
> Cyphre
--
To unsubscribe from the list, just send an email to
lists at rebol.com with unsubscribe as the subject.