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 |
|
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
|
|
|
|
|
Clipped text in theIDE
|
|
|
Re: Clipped text in theIDE
By: fudadmin on Mon, 15 February 2010 08:05
|
|
|
Re: Clipped text in theIDE
By: fudadmin on Mon, 15 February 2010 08:08
|
|
|
Re: Clipped text in theIDE
By: fudadmin on Mon, 15 February 2010 08:11
|
|
|
Re: Clipped text in theIDE
By: mirek on Mon, 15 February 2010 11:59
|
|
|
Re: Clipped text in theIDE
By: fudadmin on Mon, 15 February 2010 13:44
|
|
|
Re: Clipped text in theIDE
|
|
|
Re: Clipped text in theIDE
By: fudadmin on Mon, 15 February 2010 22:50
|
|
|
Re: Clipped text in theIDE
|
|
|
Re: Clipped text in theIDE
|
|
|
Re: Clipped text in theIDE
|
|
|
Re: Clipped text in theIDE
By: mirek on Mon, 22 February 2010 09:57
|
|
|
Re: Clipped text in theIDE
|
|
|
Re: Clipped text in theIDE
|
|
|
Re: Clipped text in theIDE
|
|
|
Re: Clipped text in theIDE
By: mirek on Tue, 23 February 2010 10:57
|
|
|
Re: Clipped text in theIDE
|
|
|
Re: Clipped text in theIDE
By: mirek on Tue, 23 February 2010 15:46
|
|
|
Re: Clipped text in theIDE
|
|
|
Re: Clipped text in theIDE
By: mirek on Wed, 24 February 2010 08:33
|
|
|
Re: Clipped text in theIDE
|
|
|
Re: Clipped text in theIDE
By: mirek on Wed, 24 February 2010 11:40
|
|
|
Re: Clipped text in theIDE
By: mirek on Wed, 24 February 2010 11:51
|
|
|
Re: Clipped text in theIDE
|
|
|
Re: Clipped text in theIDE
By: mirek on Wed, 24 February 2010 20:58
|
|
|
Re: Clipped text in theIDE
|
|
|
Re: Clipped text in theIDE
By: mirek on Wed, 24 February 2010 23:09
|
|
|
Re: Clipped text in theIDE
|
|
|
Re: Clipped text in theIDE
By: mirek on Thu, 25 February 2010 08:08
|
|
|
Re: Clipped text in theIDE
|
Goto Forum:
Current Time: Fri May 10 10:37:21 CEST 2024
Total time taken to generate the page: 0.03234 seconds
|