BorlandTalk.com Forum Index BorlandTalk.com
Borland discussion newsgroups
 
Archives   FAQFAQ   SearchSearch   MemberlistMemberlist   UsergroupsUsergroups   RegisterRegister 
 ProfileProfile   Log in to check your private messagesLog in to check your private messages   Log inLog in 

Get clipped text

 
Post new topic   Reply to topic    BorlandTalk.com Forum Index -> Delphi Graphics
View previous topic :: View next topic  
Author Message
Mr. X
Guest





PostPosted: Sat Sep 25, 2004 11:46 am    Post subject: Get clipped text Reply with quote



Hi
Im using the DrawTextEx function to draw clipped text to a Canvas with
DT_SINGLELINE or DT_END_ELLIPSIS etc .... as the flags
Is there a way to retrieve the actual string that is displayed on the canvas
after the clipping irrespective of the length of the original string ?

Thanks and Regards


Back to top
Gary Williams
Guest





PostPosted: Sat Sep 25, 2004 2:29 pm    Post subject: Re: Get clipped text Reply with quote



Mr. X wrote:
Quote:
Im using the DrawTextEx function to draw clipped text to a Canvas with
DT_SINGLELINE or DT_END_ELLIPSIS etc .... as the flags
Is there a way to retrieve the actual string that is displayed on the
canvas
after the clipping irrespective of the length of the original string ?

Include DT_MODIFYSTRING in your Format parameter. Or inspect the
uiLengthDrawn member of the DrawTextParams parameter.

-Gary



Back to top
Display posts from previous:   
Post new topic   Reply to topic    BorlandTalk.com Forum Index -> Delphi Graphics All times are GMT
Page 1 of 1

 
Jump to:  
You cannot post new topics in this forum
You cannot reply to topics in this forum
You cannot edit your posts in this forum
You cannot delete your posts in this forum
You cannot vote in polls in this forum


Powered by phpBB © 2001, 2006 phpBB Group
SEO toolkit © 2004-2006 webmedic.