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 » Developing U++ » U++ TheIDE and Library: Releases and ChangeLogs » X11 fixes...
X11 fixes... [message #9503] Sat, 12 May 2007 20:28 Go to next message
mirek is currently offline  mirek
Messages: 13975
Registered: November 2005
Ultimate Member
Fixed:

- rotated text problem (DrawText with angle)

- problem with Ctrl+1 - Ctrl+0 keys

BTW, useful testing snipped for key problems:

#include <CtrlLib/CtrlLib.h>

using namespace Upp;

struct MyApp : TopWindow {
	Label l;
	String k;

	void Do() {
		static int ii;
		String x;
		if(GetCtrl())
			x << "Ctrl ";
		if(GetAlt())
			x << "Alt ";
		if(GetShift())
			x << "Shift ";
		x << k << ' ' << GetMousePos();
		l = x;
	}

	bool Key(dword key, int count) {
		k = GetKeyDesc(key) + ' ' + FormatIntHex(key);
		Do();
	}

	typedef MyApp CLASSNAME;

	MyApp() {
		Add(l.SizePos());
		SetTimeCallback(-100, THISBACK(Do));
	}
};

GUI_APP_MAIN
{
	MyApp().Run();
}
Re: X11 fixes... [message #9504 is a reply to message #9503] Sat, 12 May 2007 21:11 Go to previous messageGo to next message
fallingdutch is currently offline  fallingdutch
Messages: 258
Registered: July 2006
Experienced Member
how did you fix the rotation problem?
had a look at the code and debugged it a bit. But got ill ...

Bas
Re: X11 fixes... [message #9506 is a reply to message #9504] Sun, 13 May 2007 00:36 Go to previous message
mirek is currently offline  mirek
Messages: 13975
Registered: November 2005
Ultimate Member
Actually, the real problem was that most likely Xft library changed on the way (because I remember it was working 2 years ago...)

Previous version returned "unrotated" character metrics even when font was rotated. New version returns "rotated" metrics.

The fix simply creates two fonts for rotated text, one to do drawing, second to obtain unrotated metrics.
Previous Topic: ColumnList DnD
Next Topic: ArrayCtrl and TreeCtrl...
Goto Forum:
  


Current Time: Wed Apr 24 12:35:35 CEST 2024

Total time taken to generate the page: 0.02224 seconds