Hi. I'm wondering if there's an event that fires when there are more toolbar buttons than will fit on the toolbar. Right now, when that happens, the remaining buttons are added to a pop-up menu. I'd like to know when that happens so I can change how the buttons are displayed (less text).
Thanks.
Hello Greg,
Has your question been answered?
Hello,
There is no event that fires. However, you can do something like the following:
private void Form1_Activated(object sender, EventArgs e){ foreach (UltraToolbar tbar in ultraToolbarsManager1.Toolbars) { foreach (ToolBase tool in tbar.Tools) { if (tool.VisibleResolved == false) { tbar.Settings.ToolDisplayStyle = ToolDisplayStyle.ImageOnlyOnToolbars; break; } } }}
Please note that if there are still too many tools to fit on the toolbar, you'll still get the overflow popup menu.