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

Home » Community » Newbie corner » Clipped text in theIDE
Re: Clipped text in theIDE [message #25407 is a reply to message #25388] Mon, 22 February 2010 09:57 Go to previous messageGo to previous message
mirek is currently offline  mirek
Messages: 14291
Registered: November 2005
Ultimate Member
Sorry for the delay.

If you can can simulate the problem with some small code (e.g. just invoking FileSel, if there is a problem too), please try these (in CtrlLib/FileList.cpp):

void FileList::Paint(Draw& w, const Rect& r, const Value& q,
		             Color ink, Color paper, dword style) const
{
	const File& m = ValueTo<File>(q);
	bool dark = Grayscale(paper) < 150;
	w.DrawRect(r, paper);
	int x = r.left + 2;
	w.DrawImage(x, r.top + (r.Height() - m.icon.GetSize().cy) / 2, m.icon);
	x += iconwidth;
	x += 2;
	FontInfo fi = m.font.Info();
	DDUMP(fi.GetHeight());
	DDUMP(fi.GetFont());
	DDUMP(r.Height());
	DDUMP((r.Height() - fi.GetHeight()) / 2);
	DrawFileName(w, x, r.top + (r.Height() - fi.GetHeight()) / 2,
	             r.right - x - 2, r.Height(), WString(m.name), m.isdir, m.font,
	             dark ? SColorHighlightText : m.ink,
	             dark ? SColorHighlightText : m.extink,
	             WString(m.desc), m.descfont, justname, m.underline);
}


and post here a resulting log (if it is too long, I believe only the first four DUMPs will be enough).

Mirek
 
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
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
Read Message
Read Message
Read Message
Read Message
Previous Topic: fail to install, 2070, 2081, 2112
Next Topic: Questions about VectorMap
Goto Forum:
  


Current Time: Mon Oct 05 19:08:04 GMT+2 2026

Total time taken to generate the page: 0.00844 seconds