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 » Community » Newbie corner » Function key to Button
Re: Function key to Button [message #54351 is a reply to message #54349] Thu, 02 July 2020 22:18 Go to previous messageGo to previous message
koldo is currently offline  koldo
Messages: 3443
Registered: August 2008
Senior Veteran
Hi Shwetha

You can capture virtual bool Key(), handle the key, and then call the parent window to handle the keys that your function doesn't. For example:
bool BtnTest::Key(dword key, int val) {
    if(key == K_CTRL_S) {
        btnEnter.DoAction();
        return true;
    } else
        return TopWindow::Key(key, val);
}


Best regards
IƱaki
 
Read Message
Read Message
Read Message
Read Message
Read Message
Previous Topic: Ultimate++ i.r.t. Fossil SCM
Next Topic: build UMK from SVN repository on windows
Goto Forum:
  


Current Time: Sun Aug 24 15:20:04 CEST 2025

Total time taken to generate the page: 0.07031 seconds