1. Re: Titles... (to D.Cuny)

>From: "Cuny, David" <David.Cuny at DSS.CA.GOV>
>Subject: Re: Titles...  (to D.Cuny)
>Date: Thu, 11 Mar 1999 11:52:43 -0800
>
>
>The correct way to do it is with setText(), but Dos32Lib being alpha, I
>can't guarantee it will work.
>

I said that I didn't mean th my[] thing,
but I already found it : showEditText().
I'm adding an AutoScroll mechanism, but
I think there's something wrong with get_text_size().
Because when I use this :

function shorten(sequence text,integer maxsize)
integer countcount=0
while count !=length(text) do
 count+=1 text=text[count..length(text)]
 if get_text_size(text,0)+16 < maxsize then
  exit
 end if
end while
 return text
end function

text=shorten(text,my[self][Size][X2])

But after a few shortens :
Normal : "abcdefghijklmop"
Later after typing : norm+"qrstuvwxyz"
but when displaying

norm+"q"
[bcdefghijklmnopq]
norm+"r"
[defghijklmnor   ]
norm+"s"
[klmnopqrs       ]

etc. till -1

(this is only an example)

This is very strange....

Bye,
PQ
QC

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

new topic     » topic index » view message » categorize

Search



Quick Links

User menu

Not signed in.

Misc Menu