Overview
Examples
Screenshots
Comparisons
Applications
Download
Documentation
Tutorials
Bazaar
Status & Roadmap
FAQ
Authors & License
Forums
Funding Ultimate++
Search on this site
Search in forums












SourceForge.net Logo
Home » U++ Library support » RichText,QTF,RTF... » how to get Text Size from controls like EditString?
Re: how to get Text Size from controls like EditString? [message #2372 is a reply to message #2358] Mon, 10 April 2006 03:55 Go to previous messageGo to previous message
fudadmin is currently offline  fudadmin
Messages: 1321
Registered: November 2005
Location: Kaunas, Lithuania
Ultimate Contributor
Administrator
luzr wrote on Sun, 09 April 2006 14:55


...
Draw::GetTextSize?

Mirek


1. How to use it? (Same difficulty as Image resize... Smile )

2. I've found more...
Size sz1 = 	ScreenInfo().GetTextSize("text size test",font);
Size sz2 = 	StdDisplay().GetStdSize(editvalue);


but they require recalculations EditString...

3. Actually, it would be good to have EditField::AutoSize(true) or similar...
 
Read Message
Read Message
Read Message
Read Message
Read Message
Read Message
Read Message
Read Message
Read Message
Read Message
Read Message
Read Message
Read Message
Previous Topic: Is LineEdit the main normal text edit control? +DocEdit [SOLVED...]
Next Topic: Scrollable log window with colour text
Goto Forum:
  


Current Time: Fri Jun 13 05:16:16 CEST 2025

Total time taken to generate the page: 0.04795 seconds