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");
}
view raw test.cs hosted with ❤ by GitHub

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:

Adding elements to the Ribbon QuickAccessToolbar