Hello

I have a width of a cell and have to determain what part of a string will fitt 
into this area. 

Currently I have this calucated by :

while TextWidth(AText) < width  do 
Copy(AText, 1, Length(AText) - 1);

Is there a faster way of doing this as I have to do this a lot of times during 
a screen refresh (e.g. during scrolling or cell-width change)

Another way should be to "clip" the text into a rect, but i did not find any 
examples on how to do this.

Any suggestions?

andries
.


                
---------------------------------
Relax. Yahoo! Mail virus scanning helps detect nasty viruses!

[Non-text portions of this message have been removed]



-----------------------------------------------------
Home page: http://groups.yahoo.com/group/delphi-en/
To unsubscribe: [EMAIL PROTECTED] 
Yahoo! Groups Links

<*> To visit your group on the web, go to:
    http://groups.yahoo.com/group/delphi-en/

<*> To unsubscribe from this group, send an email to:
    [EMAIL PROTECTED]

<*> Your use of Yahoo! Groups is subject to:
    http://docs.yahoo.com/info/terms/
 



Reply via email to