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++ Library support » U++ Widgets - General questions or Mixed problems » GLCtrl don't have Key() method wokring
Re: GLCtrl don't have Key() method wokring [message #52959 is a reply to message #52934] Tue, 21 January 2020 14:41 Go to previous messageGo to previous message
mirek is currently offline  mirek
Messages: 14255
Registered: November 2005
Ultimate Member
Xemuth wrote on Tue, 14 January 2020 14:29
Hello Mirek,

In my opinion yes since all MouseMove is triggered.
To try it from your side, open "OpenGL" exemple in reference and add this method in OpenGLExample class :
	virtual bool Key(dword key, int count) override{
		Cout() << "Key Pressed !" << EOL;
		return false;
	}

you will see it wont work.

Xemuth


Because it does not have focus. Try

GUI_APP_MAIN
{
	Ctrl::GlobalBackPaint();
	TopWindow win;
	OpenGLExample gl;
	gl.SetFrame(InsetFrame());
	win.Add(gl.HSizePos(10, 10).VSizePos(10, 10));
	win.Sizeable().Zoomable();
	win.ActiveFocus(gl);
	win.Open();
	win.Run();
}

 
Read Message
Read Message
Read Message
Read Message
Read Message
Read Message
Read Message
Previous Topic: [SOLVED] Dual GlCtrl in one frame ?
Next Topic: [SOLVED]Removing glaux lib from GLctrl
Goto Forum:
  


Current Time: Mon Apr 28 23:38:40 CEST 2025

Total time taken to generate the page: 0.00584 seconds