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 » Overriding Key method disable tab browsing
Overriding Key method disable tab browsing [message #53724] Fri, 24 April 2020 18:03 Go to previous message
Giorgio is currently offline  Giorgio
Messages: 218
Registered: August 2015
Experienced Member
Hi there,
I had been using RegisterSystemHotKey to allow users to perform some actions in my application. The shortcoming of this approach is that the registration is system wide, so other application cannot use the registered key. Users have been complaining for that for a while, so I investigated the issue and found that overriding the Key method would permit to restrict the usage to a specific window. Below is my code.

bool Key(dword keys, int count){
  if(keys==K_F10){
    HandleF10();
    return true;
  }
  return false;
}


The problem with this solution is that the user cannot move between fields using the tab key.

Is there a way to fix that?
Thanks,
gio
 
Read Message
Read Message
Read Message
Read Message
Previous Topic: [Proposal] EditSecret dialogs (EditText variants), for password, etc input..
Next Topic: Dynamic Ctrl frame
Goto Forum:
  


Current Time: Sat Apr 27 13:16:21 CEST 2024

Total time taken to generate the page: 0.03646 seconds