Hi Romano,

----- Original Message -----
From: "Romano Paolo Tenca" <[EMAIL PROTECTED]>
To: <[EMAIL PROTECTED]>
Sent: Thursday, January 31, 2002 3:04 PM
Subject: [REBOL] Re: fields and keyboard


> Hi, Brett
>
> stylize/master [
>     upper-case-field: field with [
>         feel: make feel [
>             redraw: func first :redraw append second :redraw [if act =
'show
> [face/text: uppercase face/text]]
>         ]
>     ]
> ]
>
> > Ooo I like that. :)
>
> Is a taste question, but...
>
> If the string is short and the window is not complex, not in a 200kb
string or
> in a 200 faces window (i have a program of mine which uses this sort of
> monster, you can think at a spreadsheet).

fielda aren't usually used for 200Kb strings ;-)

> In general, it is a waste of time: Redraw slows window rendering and the
> function continues to uppercase the already uppercased chars at every
show.
>

'show event is triggered usually only for active field and when user hit any
key...so where is the slowdown???

moreover:

>> st: now/time/precise loop 10000 [uppercase random "593428pf9rhtepowfh9
pw3r8fhp3wghw3rijwpoihpg"] now/time/precise - st
== 0:00:00.09 ;on my celeron 533Mhz

so where is the problem with speed? ;-)

regards,

Cyphre

-- 
To unsubscribe from this list, please send an email to
[EMAIL PROTECTED] with "unsubscribe" in the 
subject, without the quotes.

Reply via email to