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 

Form's Caption

 
Post new topic   Reply to topic    BorlandTalk.com Forum Index -> C++ Builder (VCL Components Usage)
View previous topic :: View next topic  
Author Message
Neil
Guest





PostPosted: Wed Dec 24, 2003 9:29 am    Post subject: Form's Caption Reply with quote



Is there any way to check if a Form's Caption is too long i.e. not all the
caption will be displayed so I can change to caption to something shorter?

Thanks
Neil


Back to top
Remy Lebeau (TeamB)
Guest





PostPosted: Wed Dec 24, 2003 9:26 pm    Post subject: Re: Form's Caption Reply with quote




"Neil" <no address> wrote

Quote:
Is there any way to check if a Form's Caption is too long i.e.
not all the caption will be displayed so I can change to caption
to something shorter?

There is no direct way to query that. You will have to calculate it
manually. Have a look at the GetDC() and GetTextExtentPoint32() functions
in the Win32 API. You might also need to use GetSystemMetrics() to take
window and caption borders into account as well.


Gambit



Back to top
Display posts from previous:   
Post new topic   Reply to topic    BorlandTalk.com Forum Index -> C++ Builder (VCL Components Usage) 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.