- To create a ribbon button with multi-line text using the CUI editor :
Open the CUI editor and select the ribbon item
In the “Name” field, enter the words separated by “r”. For ex : InsertrBlock
Please note that control characters such as “r” do not appear in the edit box after it is saved, but the ribbon item will display the multi-line correctly.
- To create a multi-line ribbon button using code, here is a sample code snippet :
Autodesk.Windows.RibbonButton ribButton = new RibbonButton();
ribButton.Text = String.Format("My{0}Polyline", Environment.NewLine);
ribButton.ShowText = true;
ribButton.Size = Autodesk.Windows.RibbonItemSize.Large;
ribButton.CommandParameter = "x1bx1b_PLINE ";
ribButton.CommandHandler = new AdskCommandHandler();

Leave a Reply to BalajiCancel reply