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 » RegisterSystemHotKey() only inside a program
Re: RegisterSystemHotKey() only inside a program [message #36098 is a reply to message #36091] Fri, 27 April 2012 09:39 Go to previous messageGo to previous message
mirek is currently offline  mirek
Messages: 14285
Registered: November 2005
Ultimate Member
dolik.rce wrote on Thu, 26 April 2012 09:53

Hi Koldo,

Why so complicated? I think that the functionality you want can be achieved simply by overriding Key() method in your main class, am I right? If the focused Ctrl doesn't accept the key, the event "bubbles" up the ctrl tree, until it reaches the main class, which would handle it the way you want.

Are we talking about GUI app? Or is there something I'm missing?

Best regards,
Honza



That is true and obvious, but there is one more usage scenario not covered (or not easily): this works only for single top-level window.

Anyway, you can also InstallKeyHook, which is application-wide.
 
Read Message
Read Message
Read Message
Read Message
Read Message
Read Message
Read Message
Read Message
Previous Topic: Problem compiling r4596
Next Topic: PushButton with text in the bottom
Goto Forum:
  


Current Time: Mon Feb 02 00:40:35 CET 2026

Total time taken to generate the page: 0.20928 seconds