添加toolStrip.FlowDirection属性设置,确保按钮正确排列和换行

This commit is contained in:
zqm
2025-11-10 14:40:42 +08:00
parent 6f3c0c336f
commit 93eea36652

View File

@@ -155,6 +155,7 @@ namespace JoyD.Windows.CS
this.btnBrushSize15,
this.btnBrushSize25});
this.toolStrip.AutoSize = true;
this.toolStrip.FlowDirection = System.Windows.Forms.FlowDirection.LeftToRight;
this.toolStrip.LayoutStyle = System.Windows.Forms.ToolStripLayoutStyle.Flow;
this.toolStrip.Location = new System.Drawing.Point(3, 0);
this.toolStrip.MaximumSize = new System.Drawing.Size(0, 300); // 宽度设为0表示无限制