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
GLCtrl don't have Key() method wokring [message #52870] Fri, 20 December 2019 20:50 Go to previous message
Xemuth is currently offline  Xemuth
Messages: 387
Registered: August 2018
Location: France
Senior Member
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

[Updated on: Fri, 20 December 2019 20:56]

Report message to a moderator

 
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: Thu Apr 25 18:22:58 CEST 2024

Total time taken to generate the page: 0.02655 seconds