From 1d3785b9df79b7eebe31f6b32f8781c766808136 Mon Sep 17 00:00:00 2001
From: C3204 <zhengyabo@lanpucloud.cn>
Date: 星期五, 26 十二月 2025 13:05:52 +0800
Subject: [PATCH] ”修复DPI变化导致显示异常问题。“

---
 LB_SmartVision/Forms/Pages/ProcessPage/ProcessControl.Designer.cs |   32 +++++++++++++++++---------------
 1 files changed, 17 insertions(+), 15 deletions(-)

diff --git a/LB_SmartVision/Forms/Pages/ProcessPage/ProcessControl.Designer.cs b/LB_SmartVision/Forms/Pages/ProcessPage/ProcessControl.Designer.cs
index 10f35aa..afc3cce 100644
--- a/LB_SmartVision/Forms/Pages/ProcessPage/ProcessControl.Designer.cs
+++ b/LB_SmartVision/Forms/Pages/ProcessPage/ProcessControl.Designer.cs
@@ -46,10 +46,11 @@
             // 
             // toolStrip1
             // 
+            toolStrip1.ImageScalingSize = new Size(20, 20);
             toolStrip1.Items.AddRange(new ToolStripItem[] { lblTitle, btnRun, btnCircleRun });
             toolStrip1.Location = new Point(0, 0);
             toolStrip1.Name = "toolStrip1";
-            toolStrip1.Size = new Size(360, 25);
+            toolStrip1.Size = new Size(450, 27);
             toolStrip1.TabIndex = 0;
             toolStrip1.Text = "toolStrip1";
             // 
@@ -57,7 +58,7 @@
             // 
             lblTitle.ForeColor = SystemColors.ControlText;
             lblTitle.Name = "lblTitle";
-            lblTitle.Size = new Size(56, 22);
+            lblTitle.Size = new Size(69, 24);
             lblTitle.Text = "娴佺▼鍚嶇О";
             // 
             // btnRun
@@ -66,7 +67,7 @@
             btnRun.Image = (Image)resources.GetObject("btnRun.Image");
             btnRun.ImageTransparentColor = Color.Magenta;
             btnRun.Name = "btnRun";
-            btnRun.Size = new Size(76, 22);
+            btnRun.Size = new Size(93, 24);
             btnRun.Text = "鍗曟杩愯";
             btnRun.ToolTipText = "鍗曟杩愯";
             btnRun.Click += btnRun_Click;
@@ -77,7 +78,7 @@
             btnCircleRun.Image = (Image)resources.GetObject("btnCircleRun.Image");
             btnCircleRun.ImageTransparentColor = Color.Magenta;
             btnCircleRun.Name = "btnCircleRun";
-            btnCircleRun.Size = new Size(76, 22);
+            btnCircleRun.Size = new Size(93, 24);
             btnCircleRun.Text = "杩炵画杩愯";
             btnCircleRun.ToolTipText = "杩炵画";
             btnCircleRun.Click += btnCircleRun_Click;
@@ -87,7 +88,7 @@
             panel1.Dock = DockStyle.Fill;
             panel1.Location = new Point(3, 3);
             panel1.Name = "panel1";
-            panel1.Size = new Size(354, 187);
+            panel1.Size = new Size(444, 224);
             panel1.TabIndex = 1;
             // 
             // tableLayoutPanel1
@@ -101,8 +102,8 @@
             tableLayoutPanel1.Name = "tableLayoutPanel1";
             tableLayoutPanel1.RowCount = 2;
             tableLayoutPanel1.RowStyles.Add(new RowStyle(SizeType.Percent, 100F));
-            tableLayoutPanel1.RowStyles.Add(new RowStyle(SizeType.Absolute, 22F));
-            tableLayoutPanel1.Size = new Size(360, 215);
+            tableLayoutPanel1.RowStyles.Add(new RowStyle(SizeType.Absolute, 30F));
+            tableLayoutPanel1.Size = new Size(450, 260);
             tableLayoutPanel1.TabIndex = 2;
             // 
             // tableLayoutPanel2
@@ -113,11 +114,11 @@
             tableLayoutPanel2.ColumnStyles.Add(new ColumnStyle(SizeType.Percent, 33.3333321F));
             tableLayoutPanel2.Controls.Add(label1, 0, 0);
             tableLayoutPanel2.Dock = DockStyle.Fill;
-            tableLayoutPanel2.Location = new Point(3, 196);
+            tableLayoutPanel2.Location = new Point(3, 233);
             tableLayoutPanel2.Name = "tableLayoutPanel2";
             tableLayoutPanel2.RowCount = 1;
             tableLayoutPanel2.RowStyles.Add(new RowStyle(SizeType.Percent, 100F));
-            tableLayoutPanel2.Size = new Size(354, 16);
+            tableLayoutPanel2.Size = new Size(444, 24);
             tableLayoutPanel2.TabIndex = 2;
             // 
             // label1
@@ -127,7 +128,7 @@
             label1.ForeColor = SystemColors.Control;
             label1.Location = new Point(3, 0);
             label1.Name = "label1";
-            label1.Size = new Size(112, 16);
+            label1.Size = new Size(141, 24);
             label1.TabIndex = 0;
             label1.Text = "鎬绘暟锛�0";
             label1.DoubleClick += lblCount_DoubleClick;
@@ -138,24 +139,25 @@
             uiPanel1.Controls.Add(tableLayoutPanel1);
             uiPanel1.Dock = DockStyle.Fill;
             uiPanel1.Font = new Font("瀹嬩綋", 12F, FontStyle.Regular, GraphicsUnit.Point, 134);
-            uiPanel1.Location = new Point(0, 25);
-            uiPanel1.Margin = new Padding(4, 5, 4, 5);
+            uiPanel1.Location = new Point(0, 27);
+            uiPanel1.Margin = new Padding(5, 6, 5, 6);
             uiPanel1.MinimumSize = new Size(1, 1);
             uiPanel1.Name = "uiPanel1";
-            uiPanel1.Size = new Size(360, 215);
+            uiPanel1.Size = new Size(450, 260);
             uiPanel1.TabIndex = 3;
             uiPanel1.Text = "uiPanel1";
             uiPanel1.TextAlignment = ContentAlignment.MiddleCenter;
             // 
             // ProcessControl
             // 
-            AutoScaleDimensions = new SizeF(96F, 96F);
+            AutoScaleDimensions = new SizeF(120F, 120F);
             AutoScaleMode = AutoScaleMode.Dpi;
             BackColor = Color.FromArgb(32, 41, 50);
             Controls.Add(uiPanel1);
             Controls.Add(toolStrip1);
+            Margin = new Padding(4, 4, 4, 4);
             Name = "ProcessControl";
-            Size = new Size(360, 240);
+            Size = new Size(450, 287);
             Load += ProcessControl_Load;
             toolStrip1.ResumeLayout(false);
             toolStrip1.PerformLayout();

--
Gitblit v1.9.3