Results 1 to 5 of 5

Thread: Setting Shortcut Keys

  1. #1

    Thread Starter
    Hyperactive Member Gimpster's Avatar
    Join Date
    Oct 1999
    Location
    Redmond, WA 98052
    Posts
    331

    Post

    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

  2. #2
    Hyperactive Member Juan Carlos Rey's Avatar
    Join Date
    Aug 1999
    Location
    Mendoza, Argentina
    Posts
    301

    Post

    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.

  3. #3
    Lively Member
    Join Date
    Nov 1999
    Location
    Calgary,Alberta, Canada
    Posts
    70

    Post

    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.


  4. #4
    Guru Yonatan's Avatar
    Join Date
    Apr 1999
    Location
    Israel
    Posts
    892

    Post

    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



  5. #5

    Thread Starter
    Hyperactive Member Gimpster's Avatar
    Join Date
    Oct 1999
    Location
    Redmond, WA 98052
    Posts
    331

    Post

    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
  •  



Click Here to Expand Forum to Full Width