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++ Library : Other (not classified elsewhere) » Keyboard shortcut
Re: Keyboard shortcut [message #21608 is a reply to message #21572] Fri, 29 May 2009 11:34 Go to previous messageGo to previous message
mirek is currently offline  mirek
Messages: 14262
Registered: November 2005
Ultimate Member
darthspawn wrote on Wed, 27 May 2009 12:31

I need to create a keyboard shortcut like "ctrl + h", that hide the menu bar.. is possible do it? and is possible hide a button and cut the window to optimize space? thanks!


Sure.

To hide the menu, it depends on how the menu is incorporated, but in most cases you can just call Hide or Show(false). The same for the buttom.

To catch Ctrl+H: If it is a menu command, it would happen automatically (if you add Key) (but not if menu is hidden).

You can also override Key method and catch it yourself.

Mirek
 
Read Message
Read Message
Read Message
Read Message
Read Message
Read Message
Read Message
Read Message
Previous Topic: Why struct instead of class?
Next Topic: PromptYesNo = 1|0 not IDYES|IDNO ?
Goto Forum:
  


Current Time: Sat Jun 28 08:22:00 CEST 2025

Total time taken to generate the page: 0.13450 seconds