From 85319b5405ef0330639a7d9bf77a91a0f9f251d5 Mon Sep 17 00:00:00 2001 From: zqm Date: Tue, 11 Nov 2025 15:24:41 +0800 Subject: [PATCH] =?UTF-8?q?=E4=BF=AE=E6=94=B9toolStrip=E5=B8=83=E5=B1=80?= =?UTF-8?q?=E6=A0=B7=E5=BC=8F=E4=B8=BAHorizontalStackWithOverflow=EF=BC=8C?= =?UTF-8?q?=E7=A1=AE=E4=BF=9DlblRegionNumber=E5=92=8CtxtRegionNumber?= =?UTF-8?q?=E6=8E=A7=E4=BB=B6=E4=B8=8D=E8=A2=AB=E6=8B=86=E5=88=86=E5=88=B0?= =?UTF-8?q?=E4=B8=A4=E8=A1=8C?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- Windows/CS/Framework4.0/Toprie/Toprie/Setting.Designer.cs | 7 +++++-- 1 file changed, 5 insertions(+), 2 deletions(-) diff --git a/Windows/CS/Framework4.0/Toprie/Toprie/Setting.Designer.cs b/Windows/CS/Framework4.0/Toprie/Toprie/Setting.Designer.cs index 8f20bab..f997b38 100644 --- a/Windows/CS/Framework4.0/Toprie/Toprie/Setting.Designer.cs +++ b/Windows/CS/Framework4.0/Toprie/Toprie/Setting.Designer.cs @@ -246,10 +246,13 @@ namespace JoyD.Windows.CS this.btnNewTempDiff, this.btnLoadTempDiff, this.btnSaveTempDiff}); - this.toolStrip.LayoutStyle = System.Windows.Forms.ToolStripLayoutStyle.Flow; + // 使用HorizontalStackWithOverflow布局确保控件在同一行,空间不足时显示溢出按钮而非换行 + this.toolStrip.LayoutStyle = System.Windows.Forms.ToolStripLayoutStyle.HorizontalStackWithOverflow; this.toolStrip.Location = new System.Drawing.Point(3, 0); - this.toolStrip.MaximumSize = new System.Drawing.Size(0, 100); + this.toolStrip.MaximumSize = new System.Drawing.Size(0, 50); this.toolStrip.MinimumSize = new System.Drawing.Size(100, 50); + // 设置AutoSize为true使工具栏能够自动调整大小 + this.toolStrip.AutoSize = true; this.toolStrip.Name = "toolStrip"; this.toolStrip.Padding = new System.Windows.Forms.Padding(5); this.toolStrip.Size = new System.Drawing.Size(247, 50);