Groups | Search | Server Info | Keyboard shortcuts | Login | Register [http] [https] [nntp] [nntps]


Groups > comp.lang.clipper.visual-objects > #8199

Re: Do something pressing a specific key

From "Jamal Assaf" <someone@example.com>
Newsgroups comp.lang.clipper.visual-objects
Subject Re: Do something pressing a specific key
Date 2015-06-12 14:45 -0400
Organization Aioe.org NNTP Server
Message-ID <mlf9bd$ta7$1@speranza.aioe.org> (permalink)
References <f187e549-12af-41f1-a13d-e525c02f5bf9@googlegroups.com>

Show all headers | View raw


Hi Marcos,

The easiest way to create hot keys (Accelerators) is to create a create a 
menu for the standardshellwindow or a certain window.
For each menu item you want a hot key, set the accelerator properly by 
pressing the key or key combination for example F2, or CTRL-F10, etc.
The event method you assign to menu item will be fired when you press the 
accelerator.
At runtime, the accelerator key appears to the right of the menu item 
caption on the menu and is operational.

I suggest you practice with an included a VO Standard MDI app and play with 
the EmptyShellMenu module to lean more

Jamal

"Marcos Sánchez"  wrote in message 
news:f187e549-12af-41f1-a13d-e525c02f5bf9@googlegroups.com...

Hi, at first, sorry for my poor english.

I'm trying to add a "shortcut" to some actions in my app, pressing a key 
instead of click a button. For example, pressing F6 opens specific window, 
F7 other, F8 save changes, etc.

I have read this forum but i don't know how to do that.

I appreciate you help me.

Marcos Sánchez
Rufino - Santa Fe - Argentina
marcosmisanchez@gmail.com 

Back to comp.lang.clipper.visual-objects | Previous | Next — Previous in thread | Find similar | Unroll thread


Thread

Do something pressing a specific key Marcos Sánchez <marcosmisanchez@gmail.com> - 2015-06-12 07:13 -0700
  Re: Do something pressing a specific key dlzc <dlzc1@cox.net> - 2015-06-12 07:50 -0700
  Re: Do something pressing a specific key Camille Kater <katercam@pt.lu> - 2015-06-12 17:04 +0200
  Re: Do something pressing a specific key Marcos Sánchez <marcosmisanchez@gmail.com> - 2015-06-12 11:34 -0700
    Re: Do something pressing a specific key Franz Rachbauer <office@rachbauer.org> - 2015-06-13 20:11 +0200
  Re: Do something pressing a specific key "Jamal Assaf" <someone@example.com> - 2015-06-12 14:45 -0400

csiph-web