CodeGuru Home VC++ / MFC / C++ .NET / C# Visual Basic VB Forums Developer.com
Results 1 to 2 of 2
  1. #1
    Join Date
    Mar 1999
    Posts
    2

    How to Use Accelerators as Button Clicks



    I would like the ability to use accelerators to act like button clicks in my dialog box (like Windows Calculator) but the accelators don't seem to work when using the same IDs as the buttons do. I know this is possible to do with Menu items so is there a trick to using them with buttons.

  2. #2
    Join Date
    Apr 1999
    Posts
    16

    Re: How to Use Accelerators as Button Clicks



    I doubt this is what you are looking for (way too simple) but just in case...

    If you dont mind your buttons not actually getting pushed, but having the same

    functionality as the Calculator buttons modify the caption of the button on the

    dialog editor from "YourButton" to "&YourButton" now when you run the dialog and pres "y" you get the functionality of YourButton.


    .

    well you never know, sorry for writing something so basic.

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

Featured