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

>From: "Cuny, David" <David.Cuny at DSS.CA.GOV>
>Subject: Re: Titles... (to D.Cuny)
>Date: Fri, 12 Mar 1999 10:58:40 -0800
>
>Are you saying that get_text_size() is returning negative values? What
>character string are you passing to it to get that result?
>

Do you ever read emails completely ?

No no negative values....
Just the wrong values....

I'm working on a ES_AUTOHSCROLL for DOS32LIB,
To remove some things out of a string in a box I use this....

function shorten(sequence text,integer maxsize)
integer count
count=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

[in proc. showEditText()]
text = shorten(text,my[self][Size][X2])
image = build_text_image(text, BLACK, BRIGHT_WHITE, 0 )

text does not change permanently,
it still stays the same and's getting longer when you wright.

The problem is, if I use this a few times,
It get's shorter till -1.

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