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   | 
		 
		
			
				
				
				  | 
					
						  
						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  
 |  
	| 
		
	 | 
 
 
 |  
  
 
Goto Forum:
 
 Current Time: Tue Nov 04 14:00:09 CET 2025 
 Total time taken to generate the page: 0.05623 seconds 
 |