U++ framework
Do not panic. Ask here before giving up.

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: 1796
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: Sat Oct 03 04:00:17 GMT+2 2026

Total time taken to generate the page: 0.00669 seconds