|
-
Nov 5th, 1999, 07:32 AM
#1
Thread Starter
Hyperactive Member
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
[email protected]
ICQ# 47799046
-
Nov 5th, 1999, 08:37 AM
#2
Hyperactive Member
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.
-
Nov 5th, 1999, 08:59 AM
#3
Lively Member
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.
-
Nov 5th, 1999, 07:12 PM
#4
Guru
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: [email protected]
ICQ: 19552879
-
Nov 8th, 1999, 03:12 AM
#5
Thread Starter
Hyperactive Member
yes, I definitely need an example for that API call. I'm not that familiar with API, yet. Thanks.
------------------
Ryan
[email protected]
ICQ# 47799046
Posting Permissions
- You may not post new threads
- You may not post replies
- You may not post attachments
- You may not edit your posts
-
Forum Rules
|
Click Here to Expand Forum to Full Width
|