ToolStripButton - Add a Shortcut
Hi,
How do you set a shortcut to a toolstripbutton in a Ribbon control. Is there an easy way to do this?
Thanks,
Gurbhej
How do you set a shortcut to a toolstripbutton in a Ribbon control. Is there an easy way to do this?
Thanks,
Gurbhej
SIGN IN To post a reply.
4 Replies
AD
Administrator
Syncfusion Team
August 18, 2008 05:58 AM UTC
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
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
AD
Administrator
Syncfusion Team
August 19, 2008 06:21 AM UTC
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
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
GD
Gurbhej Dhillon
August 21, 2008 02:19 PM UTC
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
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
AD
Administrator
Syncfusion Team
August 27, 2008 04:32 AM UTC
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
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
SIGN IN To post a reply.
- 4 Replies
- 2 Participants
-
GD Gurbhej Dhillon
- Aug 15, 2008 02:08 PM UTC
- Aug 27, 2008 04:32 AM UTC