We use cookies to give you the best experience on our website. If you continue to browse, then you agree to our privacy policy and cookie policy.
Unfortunately, activation email could not send to your email. Please try again.

ToolStripButton - Add a Shortcut

Thread ID:

Created:

Updated:

Platform:

Replies:

75932 Aug 15,2008 10:08 AM Aug 27,2008 12:32 AM Windows Forms 4
loading
Tags: Tools
Gurbhej Dhillon
Asked On August 15, 2008 10:08 AM

Hi,

How do you set a shortcut to a toolstripbutton in a Ribbon control. Is there an easy way to do this?

Thanks,

Gurbhej


Administrator [Syncfusion]
Replied On August 18, 2008 01:58 AM

Hi Gurbhej,

Thank you for your interest in Syncfusion products.

The better way is to use the Super Accelerator control for this purpose. SuperAccelerator is a component that is used to accelerate the click event of items by using a Single key stroke without mouse hover on it. Please refer to the below KB article for more detail regarding Super Accelerator control and let me know if it helps you.

Link: http://www2.syncfusion.com/ug_63/toolswin/SuperAccelerator.html

Please refer the simple sample for your requirement.
http://websamples.syncfusion.com/samples/Tools.Windows/F75932/main.htm

Please let me know if you have any queries.

Regards,
Hema


Administrator [Syncfusion]
Replied On August 19, 2008 02:21 AM

Hi Gurbhej,

Thank you for your patience.

The setShortcut method gets/sets the shortcut keys for easy access through the keyboard.
Please refer the below code snippets:

[C#]
this.SetShortcut(this.toolStripTabItem1,((System.Windows.Forms.Keys) (((System.Windows.Forms.Keys.Control | System.Windows.Forms.Keys.Shift) | System.Windows.Forms.Keys.T)

For more detail please refer the following tutorial and KB article.
Tutorial link: http://www2.syncfusion.com/ug_63/toolswin/KeyBoardShortCut.html
KB article: http://www.syncfusion.com/support/kb/tools/Default.aspx?ToDo=view&questId=620

Please refer the screen shot for toolstripbutton properties window:
http://websamples.syncfusion.com/samples/Tools.Windows/F75932_1/Tools_WF_Shortcut.zip

Please let me know if any concerns.

Regards,
Hema


Gurbhej Dhillon
Replied On August 21, 2008 10:19 AM

Thanks. This is perfect.

One other question - How can you have a popup menu with the same items as in the RibbonPanelMergeContainer. We used to be able to do this using Syncfusion.Windows.Forms.Tools.XPMenus.PopupMenu and associate it with a ParentBarItem which would contain all the menu items. Is there something similar we can do with the RibbonControl?

Thanks,

Gurbhej


>Hi Gurbhej,

Thank you for your patience.

The setShortcut method gets/sets the shortcut keys for easy access through the keyboard.
Please refer the below code snippets:

[C#]
this.SetShortcut(this.toolStripTabItem1,((System.Windows.Forms.Keys) (((System.Windows.Forms.Keys.Control | System.Windows.Forms.Keys.Shift) | System.Windows.Forms.Keys.T)

For more detail please refer the following tutorial and KB article.
Tutorial link: http://www2.syncfusion.com/ug_63/toolswin/KeyBoardShortCut.html
KB article: http://www.syncfusion.com/support/kb/tools/Default.aspx?ToDo=view&questId=620

Please refer the screen shot for toolstripbutton properties window:
http://websamples.syncfusion.com/samples/Tools.Windows/F75932_1/Tools_WF_Shortcut.zip

Please let me know if any concerns.

Regards,
Hema




Administrator [Syncfusion]
Replied On August 27, 2008 12:32 AM

Hi Grubhej,

Thank you for your patience.

I regret to let you know that currently we do not provide support for the feature "PopupMenu with same items as in the RibbonPanelMergeContainer" in our code library. We have notified our development team on this regard and will get back to you once we hear back from them. Sorry for the inconvenience.

Please let me know if you have any other questions.

Regards,
Hema



CONFIRMATION

This post will be permanently deleted. Are you sure you want to continue?

Sorry, An error occured while processing your request. Please try again later.

You are using an outdated version of Internet Explorer that may not display all features of this and other websites. Upgrade to Internet Explorer 8 or newer for a better experience.

;