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 » ArrayCtrl, HeaderCtrl & GridCtrl » LineEdit font bug
Re: LineEdit font bug [message #40847 is a reply to message #40843] Mon, 23 September 2013 10:14 Go to previous messageGo to previous message
dolik.rce is currently offline  dolik.rce
Messages: 1789
Registered: August 2008
Location: Czech Republic
Ultimate Contributor

Hi iST1,

The problem is that you change the font. LineEdit is probably (I'm not sure) designed to work with monospace fonts only (anyone else knows more about this?). But GetStdFont returns non-monospace, e.g.
	DUMP(editCell.GetFont());
	editCell.SetFont(GetStdFont());
	DUMP(editCell.GetFont());
on my system logs
Quote:

editCell.GetFont() = <monospace:16>
editCell.GetFont() = <FreeSans:12>


If you skip the SetFont line, it works as expected. If you really want to change the font, try using some monospaced one...

Best regards,
Honza
 
Read Message
Read Message
Read Message icon14.gif
Previous Topic: Two "basic" operations on GridCtrl
Next Topic: GridCtrl, Editing and DoubleClick
Goto Forum:
  


Current Time: Sun Apr 28 05:38:05 CEST 2024

Total time taken to generate the page: 4.00111 seconds