in

C1 Community

ComponentOne Community is a free source for developers and help authors to collaborate and communicate.

Adding Keyboard Shortcuts to the ribbon

Last post 06-30-2008 9:32 AM by C1_AndreyD. 3 replies.
Page 1 of 1 (4 items)
Sort Posts: Previous Next
  • 06-30-2008 2:40 AM

    Adding Keyboard Shortcuts to the ribbon

    The latest version of the ribbon control adds the ribbon Gallery to allow for improved handling of keyboard shortcuts.  Whilst I can see obvious properties such as ShortcutKeys and ShortcutKeyDisplayString I can't quite see how one gets to show the end user what shortcuts are assigned to ribbon controls.  How should that be done?

     

    Thanks

    Dom

  • 06-30-2008 7:43 AM In reply to

    Re: Adding Keyboard Shortcuts to the ribbon

    Hi Dom,

    > The latest version of the ribbon control adds the ribbon Gallery
    > to allow for improved handling of keyboard shortcuts.

    The RibbonGallery element shows a drop-down gallery. I'm not
    sure that it may impove handling of keyboard shortcuts.

    > I can't quite see how one gets to show the end user what shortcuts
    > are assigned to ribbon controls.

    The info about shortcuts can appear in a tooltip. For example, the
    ToolTip property for the 'Justify' button may contain the following:

    <p><b>Justify (Ctrl+J)</b></p>
    <p>Align text to both the left and right<br>
    margins, adding extra space<br>
    between words as necessary.</p>

    Hope this will help.

    Regards,

    -Andrey

  • 06-30-2008 8:21 AM In reply to

    Re: Adding Keyboard Shortcuts to the ribbon

    Thanks Andrey

     

    In that case what does the shortcutDisplaystring property do, and how do you use it?

    Dom

  • 06-30-2008 9:32 AM In reply to

    Re: Adding Keyboard Shortcuts to the ribbon

    The text assigned to the ShortcutKeyDisplayString property appears
    after the menu item when the RibbonButton or RibbonToggleButton
    is used in a drop-down menu.

    Regards,

    -Andrey
Page 1 of 1 (4 items)
Contact ComponentOne: 1.800.858.2739 ©1987-2008 ComponentOne LLC All Rights Reserved.