Hi, I have some code (not my own) that has a WinForm with an UltraToolBarsManager. The toolbar has buttons dynamically added to it, and if more butttons get added than can fit, a drop-down arrow appears at the end of the toolbar which shows the buttons that didn't fit. As far as I can see this happens automatically. The buttons that do fit on the toolbar are shown with large icons and text (as explicitly set in the code), but the buttons that don't fit are shown with small icons alone. Is there any way to get the buttons that don't fit to show in the drop-down with text as well? Thanks!
Hi Giles Smith,
The buttons in the toolbar are actually tools as the toolbar is "tool container". Each tool has a DisplayStyle property which determines whether the tool is displayed with an image and/or text. The Default setting of this property is different for different tools and depends on if the tool is in menu or on the toolbar. If you want to have an image and text shown for all the tools, just set DisplayStyle.ImageAndText for each one of them.
Please feel free to let me know if this works for you or if you have any other questions.
Thanks very much for taking the time to help. That worked a treat.
For anyone else seeking to do the same...
If I understand it correctly, each tool's display style can be set to have different behaviour based upon whether it's on a toolbar or in a menu (and it's a menu that provides access to the remaining tools when there are too many to fit on a toolbar). The DisplayStyle property is under SharedProperties:
button.SharedProps.DisplayStyle = ToolDisplayStyle.ImageAndText;
The other options are desrcribed here: http://help.infragistics.com/Help/NetAdvantage/WinForms/2011.2/CLR2.0/html/Infragistics2.Win.UltraWinToolbars.v11.2~Infragistics.Win.UltraWinToolbars.ToolDisplayStyle.html