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++ TheIDE » U++ TheIDE: Installation, Compiling and Running of theide » About the automated build svn U++ 1469 on WinXP of Chinese version
Re: About the automated build svn U++ 1469 on WinXP of Chinese version [message #22662 is a reply to message #22656] Mon, 03 August 2009 17:48 Go to previous messageGo to previous message
mirek is currently offline  mirek
Messages: 13984
Registered: November 2005
Ultimate Member
OK, that seems to be about right...

Let us try this:

struct PackageDisplay : Display {
	Font fnt;

	virtual Size GetStdSize(const Value& q) const {
		Size sz = GetTextSize(String(q), fnt);
		sz.cx += 20;
		sz.cy = max(sz.cy, 16);
		DUMP(sz.cy);
		return sz;
	}

	virtual void Paint(Draw& w, const Rect& r, const Value& q, Color ink, Color paper, dword style) const {
		w.DrawRect(r, paper);
		w.DrawImage(r.left, r.top + (r.Height() - 16) / 2, IdeImg::Package());
		w.DrawText(r.left + 20, r.top + (r.Height() - Draw::GetStdFontCy()) / 2, String(q), fnt, ink);
		LOG(String(q) << " " << fnt);
		DUMP(Draw::GetStdFontCy());
		DUMP(r.top + (r.Height() - Draw::GetStdFontCy()) / 2);
		DUMP(fnt.GetAscent());
		DUMP(fnt.GetDescent());
	}

	PackageDisplay() { fnt = StdFont(); }
};



Thanks,

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
Previous Topic: Mingw/GCC 4.4.0 linker warnings
Next Topic: No texts rendered unless NOGTK flag is used
Goto Forum:
  


Current Time: Fri Jun 07 19:45:11 CEST 2024

Total time taken to generate the page: 0.03839 seconds