Re: Titles...

new topic     » topic index » view thread      » older message » newer message

>From: jiri babor <jbabor at PARADISE.NET.NZ>
>Subject: Re: Titles...
>Date: Sat, 13 Mar 1999 11:03:47 +1300
>
>David,
>
>I would not worry about it. I checked get_text_size() and it's ok. It
>appears Patrick's crummy algorithm is the culprit, he is effectively
>trimming the text from *both* ends simultaneously, so he in fact
crosses
>over the test value without actually ever attaining it. Why he does not
say
>something simple like
>
>while get_text_size(text,0)+16 >= maxsize do
>    text = text[2..length(text)]
>end while
>
>is beyond me, but that's the way he likes it...
>
>Btw and quite generally, if people think a bit more carefully about the
>questions they want to ask, spend more time formulating them and
include
>just a bit more background information, they will get their answers
much
>quicker, more reliably and save a lot of frustrating guesswork to their
>helpers. Have a nice weekend. jiri
>

Algorithm ?

while get_text_size(text,0)+16 >= maxsize do
 text = text[2..length(text)]
end while

No way !

Is possible but too complicated....
Seems weird huh?

What if I BackSpace huh?
and it's not always 2
If I have a SLE that has space for 4 characters...
[    ]
I write
[A   ]
Nothing wrong till
[ABCD]
I write further...
[BCDE] as your code tells
BUT!
The sequence still stays "ABCDE"
So if you write
ABCDEF
It shows
[BCDE]F

Even whenn you use extra sequences, it doesn't work,
because of "other" SLE's that you're writing in,
and if you use str=append(str,{})
it still does not work....

Bye,
PQ
QC

PS. Think before you write....

Get Your Private, Free Email at http://www.hotmail.com

new topic     » topic index » view thread      » older message » newer message

Search



Quick Links

User menu

Not signed in.

Misc Menu