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++ » UppHub » freetype2 and FTGL libraries
Re: freetype2 and FTGL libraries [message #33886 is a reply to message #33885] Wed, 21 September 2011 14:38 Go to previous messageGo to previous message
mirek is currently offline  mirek
Messages: 13976
Registered: November 2005
Ultimate Member
koldo wrote on Wed, 21 September 2011 07:45

Hello Massimo

For a week I am far from my Linux so I cannot try the package.

In Windows, I have got the same problem. Control does not get the keys.

Debugging inside I think the problem is in GlCtrl.h, line 142:

Now the costructor is:

	GLCtrl(int  depthsize = 24, int  stencilsize = 0, bool doublebuffer = true,
	       bool multisamplebuffering = false, int  numberofsamples = 0)
		: depthSize(depthsize),
		  stencilSize(stencilsize), 
		  doubleBuffering(doublebuffer), 
		  multiSampleBuffering(multisamplebuffering), 
		  numberOfSamples(numberofsamples)
	{
		NoWantFocus();  <<<<==== HERE
		Transparent();
		pane.ctrl = this;
		Add(pane.SizePos());
	}

You can see the NoWantFocus() inside. If we remove that line, your demo works perfectly handling the keyboard.

Mirek, Daniel, could it be possible to remove that line?


It is just default setting for GLCtrl (because the guess at the time was that in majority of cases, GLCtrl will be 'static display'). You can always revert it by calling WantFocus.

Mirek
 
Read Message
Read Message
Read Message
Read Message
Read Message
Read Message
Previous Topic: Let's test VLCPlayer and help to find some bugs
Next Topic: Scatter: To find width bwt any two points.
Goto Forum:
  


Current Time: Fri May 10 04:38:11 CEST 2024

Total time taken to generate the page: 0.02599 seconds