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 » 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: 13976
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: Fri May 10 10:37:21 CEST 2024

Total time taken to generate the page: 0.03234 seconds