overflow menu size
I have a Windows Forms Toolstrip with the property 'CanOverflow' enabled. Items that don't fit in the toolstrip, are moved into the drop-down overflow menu. Is there a way to control the size of the Overflow menu?
I have a vertical toolstrip and there are currently too much items in it. Some items don't fit on the screen and have become inaccessible. I want to adjust the width, because it can show multiple items on each line.
您可以通过设置TableLayoutSettings的ColumnCount在DropDown菜单中创建多列表布局,例如:
ToolStripDropDown drop_down = new ToolStripDropDown();
// ...add your huge number of ToolStripItems to drop_down.Items here
drop_down.LayoutStyle = ToolStripLayoutStyle.Table;
((TableLayoutSettings)drop_down.LayoutSettings).ColumnCount = 2; // Or whatever you need
menu_item.DropDown = drop_down;
链接地址: http://www.djcxy.com/p/27824.html
上一篇: 将列表视图拆分为多个列
下一篇: 溢出菜单大小