Announcement

Collapse
No announcement yet.

Toolbar Accelerator Keys?

Collapse
X
 
  • Filter
  • Time
  • Show
Clear All
new posts

  • BOB MECHLER
    replied
    Thanks, I'll give it a try and report the results.
    Bob Mechler

    Leave a comment:


  • Adam J. Drake
    replied
    If you mean associate an accelerator key with a toolbar button function, yes.

    Inside your callback procedure, where you process the accelerator key, add your toolbar button ID to that same case, and it should work.

    Example:

    Shortcut key Ctrl+C is associated with button %IDC_TOOLBAR_CALCULATE.

    Code:
    SELECT CASE AS LONG CBMSG
        CASE %WM_COMMAND
            SELECT CASE CBCTL
                CASE %IDC_TOOLBAR_CALCULATE, %IDA_CTRLC
                    ' Code here should fire for both situations
            END SELECT
    END SELECT

    Leave a comment:


  • BOB MECHLER
    started a topic Toolbar Accelerator Keys?

    Toolbar Accelerator Keys?

    Can it be done?
Working...
X