PDA

Click to See Complete Forum and Search --> : Setting Shortcut Keys


Gimpster
Nov 5th, 1999, 06:32 AM
How do I set shortcut keys to a picture event? What I want to do is be able to set Alt+B to be the shortcut to a picture_click event. How can I go about this?

------------------
Ryan
corneslen@hotmail.com
ICQ# 47799046

Juan Carlos Rey
Nov 5th, 1999, 07:37 AM
One (non elegant) way is to add a MenuItem with the function you want to perform at the click-event of your picture, and then set the Alt-B ShortCut to that menu item.

Jessie
Nov 5th, 1999, 07:59 AM
this method is from the help section
Sets a value that specifies a shortcut key for a Menu object. Not available at run time.

Remarks

Use this property to provide keyboard shortcuts for menu commands. You can set this property using the Menu Editor. For a list of shortcut keys you can use, see the Shortcut list in the Menu Editor.

Note In addition to shortcut keys, you can also assign access keys to commands, menus, and controls by using an ampersand (&) in the Caption property setting.

Yonatan
Nov 5th, 1999, 06:12 PM
If you want Alt+B to switch to your application and activate the Picture_Click event, then you can use the RegisterHotkey API. Post here if you need an example.

------------------
Yonatan
Teenage Programmer
E-Mail: RZvika@netvision.net.il
ICQ: 19552879 (http://www.icq.com/19552879)

Gimpster
Nov 8th, 1999, 02:12 AM
yes, I definitely need an example for that API call. I'm not that familiar with API, yet. Thanks.

------------------
Ryan
corneslen@hotmail.com
ICQ# 47799046