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 » How to assign Fn-Key to button?
Re: How to assign Fn-Key to button? [message #19011 is a reply to message #19007] Wed, 05 November 2008 10:33 Go to previous messageGo to previous message
mrjt is currently offline  mrjt
Messages: 705
Registered: March 2007
Location: London
Contributor
I don't think there is a direct way of doing this. What you do is overload the parent window's Key handler:
bool Key(dword key, int count) {
   if (key == K_F5) {
      button.PseudoPush();
      return true;
   }
   return TopWindow::Key(key, count);
}

Doing it this way also permits user-defined keys. I suggest you look at the reference/AK package or how to do this with very little effort. You basically just have to defined the keys then replace F5 with AK_whatever.
 
Read Message
Read Message
Read Message
Previous Topic: DHCtrl based control issue in Windows Vista
Next Topic: DropList not working
Goto Forum:
  


Current Time: Sat Jun 07 23:15:31 CEST 2025

Total time taken to generate the page: 0.04224 seconds