Adding Elements to the Ribbon QuickAccessToolbar
Version X14 implements a new Ribbon Control with the typical ribbon functionality and it comes with pre-configured ribbon tabs for the most typical tasks of TX Text Control. The Quick Access Toolbar is a customizable toolbar that contains a set of pre-defined commands and users can add additional buttons for typical common tasks. The following code shows how to add the standard items to the toolbar: The SetQuickAccessToolbarStandardItems method accepts an array of RibbonButtons. A…

Version X14 implements a new Ribbon Control with the typical ribbon functionality and it comes with pre-configured ribbon tabs for the most typical tasks of TX Text Control.
The Quick Access Toolbar is a customizable toolbar that contains a set of pre-defined commands and users can add additional buttons for typical common tasks.
The following code shows how to add the standard items to the toolbar:
private void Form1_Load(object sender, EventArgs e)
{
RibbonButton rbtnClickMe =
new TXTextControl.Windows.Forms.Ribbon.RibbonButton();
rbtnClickMe.Text = "Click Me";
rbtnClickMe.SmallIcon = Image.FromFile("checkmark.png");
rbtnClickMe.Click += RbtnClickMe_Click;
SetQuickAccessToolbarStandardItems(new RibbonButton[] {
rbtnClickMe });
}
private void RbtnClickMe_Click(object sender, EventArgs e)
{
MessageBox.Show("Click Me");
}
The SetQuickAccessToolbarStandardItems method accepts an array of RibbonButtons. A RibbonButton has text which is displayed in the context menu, an icon that is rendered in the toolbar and you can attach events to it. The following screenshot shows the added button and the context menu that can be used to enable and disable the standard items:

Windows Forms
Text Control combines the power of a reporting tool and an easy-to-use WYSIWYG word processor - fully programmable and embeddable in your Windows Forms application. TX Text Control .NET for Windows Forms is a royalty-free, fully programmable rich edit control that offers developers a broad range of word processing features in a reusable component for Visual Studio.
Related Posts
Version X14: Customizing the Text Control Ribbon Control
TX Text Control X14 (24.0) comes with a fully-customizable, programmable Ribbon control. Pre-configured RibbonTabs can be used to create typical TX Text Control applications without writing a…
Sneak Peek: Windows Forms Ribbon Bar Visual Studio Design-time Support
Version X14 (24.0) of TX Text Control .NET for Windows Forms will be shipped with a fully-featured, customizable and programmable Ribbon Bar with pre-configured Ribbon Tabs for the most typical…
TX Text Control 33.0 SP3 is Now Available: What's New in the Latest Version
TX Text Control 33.0 Service Pack 3 is now available, offering important updates and bug fixes for all platforms. If you use TX Text Control in your document processing applications, this service…
TX Text Control 33.0 SP2 is Now Available: What's New in the Latest Version
TX Text Control 33.0 Service Pack 2 is now available, offering important updates and bug fixes for all platforms. If you use TX Text Control in your document processing applications, this service…
Service Pack Releases: What's New in TX Text Control 33.0 SP1 and 32.0 SP5
TX Text Control 33.0 Service Pack 1 and TX Text Control 32.0 Service Pack 5 have been released, providing important updates and bug fixes across platforms. These service packs improve the…