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 #52924 is a reply to message #52870] Mon, 13 January 2020 15:06 Go to previous messageGo to previous message
mirek is currently offline  mirek
Messages: 13980
Registered: November 2005
Ultimate Member
Xemuth wrote on Fri, 20 December 2019 20:50
Hello community,

I know it's probably not a bug and it work as intended but the overwrite of virtual key method on GlCtrl inheriteds class don't work !
Instead, to manage keytboard input event on the GLCtrl I need to install keyhook like that :
{
 //Constructor of my GlCtrl inherited class
	InstallKeyHook(&OpenGLExample::CtrlKeyHook); //Activate KeyEvent

}

//Static method of my class
static bool CtrlKeyHook(Ctrl* ctrl, dword key, int count)
	LOG("A key have been pressed !");
	return true;
}


But, since all mouse event can be properly overwritten in GLCtrl inherited class, why those key method can't be ?

Thanks in advance

Xemuth


Does it have a focus?

Mirek
 
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: Sat May 18 17:06:30 CEST 2024

Total time taken to generate the page: 0.01323 seconds