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 » How to add accelerator keys to menus
Re: How to add accelerator keys to menus [message #35639 is a reply to message #27056] Fri, 09 March 2012 09:57 Go to previous messageGo to previous message
jibe is currently offline  jibe
Messages: 294
Registered: February 2007
Location: France
Experienced Member
Hi,

andrei_natanael wrote on Wed, 23 June 2010 15:33

Item::Key() is for that. Bar::Add() return a reference to Item. Here is an example.
bar.Add("Quit", THISBACK(Quit)).Key(K_CTRL | K_Q);


Yes, this works well !

But this way, I can have the SHIFT+CTRL combination, but others like CTRL+ALT or SHIFT+ALT give a complilation error :

Quote:

main.cpp:124: error: ‘K_CTRL_ALT_E’ was not declared in this scope


What is wrong ? Is there a simple way (without .key file) to have this working ?

 
Read Message
Read Message
Read Message
Read Message
Read Message
Read Message
Read Message
Previous Topic: Moving to Linux dev from Win
Next Topic: Linux external libs
Goto Forum:
  


Current Time: Sun Jul 06 17:49:05 CEST 2025

Total time taken to generate the page: 0.03596 seconds