为toolStrip控件设置宽度为200,确保按钮能在一行显示不完时自动换行

This commit is contained in:
zqm
2025-11-10 14:12:42 +08:00
parent a57aa6ae06
commit 08c428a974

View File

@@ -224,7 +224,8 @@ namespace JoyD.Windows.CS
this.btnBrushSize25});
this.toolStrip.Location = new System.Drawing.Point(3, 0);
this.toolStrip.Name = "toolStrip";
// 移除固定Size让AutoSize属性生效
// 设置一个适当的宽度,确保按钮会换行
this.toolStrip.Width = 200;
this.toolStrip.TabIndex = 3;
this.toolStrip.Text = "工具条";
//