From eb503eb0b578fb7e4219cb7e913d7c268b641d31 Mon Sep 17 00:00:00 2001
From: C3204 <zhengyabo@lanpucloud.cn>
Date: 星期三, 31 十二月 2025 13:29:33 +0800
Subject: [PATCH] 优化相机运动控制界面设计显示
---
LB_SmartVision/VisionForm.Designer.cs | 194 +++++++++++++++--------------------------------
1 files changed, 63 insertions(+), 131 deletions(-)
diff --git a/LB_SmartVision/VisionForm.Designer.cs b/LB_SmartVision/VisionForm.Designer.cs
index 659b183..e291852 100644
--- a/LB_SmartVision/VisionForm.Designer.cs
+++ b/LB_SmartVision/VisionForm.Designer.cs
@@ -31,17 +31,14 @@
System.ComponentModel.ComponentResourceManager resources = new System.ComponentModel.ComponentResourceManager(typeof(VisionForm));
theme_VisionForm = new ReaLTaiizor.Forms.ThemeForm();
sc_VisionForm = new SplitContainer();
- sc_VisionMainViewer = new SplitContainer();
- tlp_VisionMainForm = new Sunny.UI.UITableLayoutPanel();
+ tlp_MainView = new Sunny.UI.UITableLayoutPanel();
+ materialTabControl = new MaterialSkin.Controls.MaterialTabControl();
tlp_VisionMainOperator = new Sunny.UI.UITableLayoutPanel();
ckb_AllowRun = new Sunny.UI.UICheckBox();
btn_Login = new ReaLTaiizor.Controls.Button();
btn_GlobalVar = new ReaLTaiizor.Controls.Button();
com_ProductName = new ReaLTaiizor.Controls.AloneComboBox();
materialTabSelector = new MaterialSkin.Controls.MaterialTabSelector();
- materialTabControl = new MaterialSkin.Controls.MaterialTabControl();
- tabPage1 = new TabPage();
- tabPage2 = new TabPage();
grb_Info = new Sunny.UI.UIGroupBox();
rich_Info = new Sunny.UI.UIRichTextBox();
cb_VisionForm = new ReaLTaiizor.Controls.ControlBox();
@@ -50,13 +47,8 @@
sc_VisionForm.Panel1.SuspendLayout();
sc_VisionForm.Panel2.SuspendLayout();
sc_VisionForm.SuspendLayout();
- ((System.ComponentModel.ISupportInitialize)sc_VisionMainViewer).BeginInit();
- sc_VisionMainViewer.Panel1.SuspendLayout();
- sc_VisionMainViewer.Panel2.SuspendLayout();
- sc_VisionMainViewer.SuspendLayout();
- tlp_VisionMainForm.SuspendLayout();
+ tlp_MainView.SuspendLayout();
tlp_VisionMainOperator.SuspendLayout();
- materialTabControl.SuspendLayout();
grb_Info.SuspendLayout();
SuspendLayout();
//
@@ -69,12 +61,11 @@
theme_VisionForm.Font = new Font("Microsoft YaHei UI", 12F, FontStyle.Regular, GraphicsUnit.Point, 0);
theme_VisionForm.Image = (Image)resources.GetObject("theme_VisionForm.Image");
theme_VisionForm.Location = new Point(0, 0);
- theme_VisionForm.Margin = new Padding(4);
theme_VisionForm.Name = "theme_VisionForm";
- theme_VisionForm.Padding = new Padding(12, 88, 12, 11);
+ theme_VisionForm.Padding = new Padding(10, 70, 10, 9);
theme_VisionForm.RoundCorners = true;
theme_VisionForm.Sizable = true;
- theme_VisionForm.Size = new Size(1800, 1200);
+ theme_VisionForm.Size = new Size(1152, 704);
theme_VisionForm.SmartBounds = true;
theme_VisionForm.StartPosition = FormStartPosition.WindowsDefaultLocation;
theme_VisionForm.TabIndex = 0;
@@ -83,60 +74,53 @@
// sc_VisionForm
//
sc_VisionForm.Dock = DockStyle.Fill;
- sc_VisionForm.Location = new Point(12, 88);
- sc_VisionForm.Margin = new Padding(4);
+ sc_VisionForm.FixedPanel = FixedPanel.Panel2;
+ sc_VisionForm.Location = new Point(10, 70);
sc_VisionForm.Name = "sc_VisionForm";
sc_VisionForm.Orientation = Orientation.Horizontal;
//
// sc_VisionForm.Panel1
//
- sc_VisionForm.Panel1.Controls.Add(sc_VisionMainViewer);
+ sc_VisionForm.Panel1.Controls.Add(tlp_MainView);
//
// sc_VisionForm.Panel2
//
sc_VisionForm.Panel2.Controls.Add(grb_Info);
- sc_VisionForm.Size = new Size(1776, 1101);
- sc_VisionForm.SplitterDistance = 873;
- sc_VisionForm.SplitterWidth = 5;
+ sc_VisionForm.Size = new Size(1132, 625);
+ sc_VisionForm.SplitterDistance = 478;
sc_VisionForm.TabIndex = 1;
//
- // sc_VisionMainViewer
+ // tlp_MainView
//
- sc_VisionMainViewer.Dock = DockStyle.Fill;
- sc_VisionMainViewer.Location = new Point(0, 0);
- sc_VisionMainViewer.Margin = new Padding(4);
- sc_VisionMainViewer.Name = "sc_VisionMainViewer";
- sc_VisionMainViewer.Orientation = Orientation.Horizontal;
+ tlp_MainView.ColumnCount = 1;
+ tlp_MainView.ColumnStyles.Add(new ColumnStyle(SizeType.Percent, 100F));
+ tlp_MainView.Controls.Add(materialTabControl, 0, 2);
+ tlp_MainView.Controls.Add(tlp_VisionMainOperator, 0, 1);
+ tlp_MainView.Controls.Add(materialTabSelector, 0, 0);
+ tlp_MainView.Dock = DockStyle.Fill;
+ tlp_MainView.Location = new Point(0, 0);
+ tlp_MainView.Margin = new Padding(2);
+ tlp_MainView.Name = "tlp_MainView";
+ tlp_MainView.RowCount = 3;
+ tlp_MainView.RowStyles.Add(new RowStyle(SizeType.Absolute, 48F));
+ tlp_MainView.RowStyles.Add(new RowStyle(SizeType.Absolute, 31F));
+ tlp_MainView.RowStyles.Add(new RowStyle(SizeType.Percent, 100F));
+ tlp_MainView.Size = new Size(1132, 478);
+ tlp_MainView.TabIndex = 1;
+ tlp_MainView.TagString = null;
//
- // sc_VisionMainViewer.Panel1
+ // materialTabControl
//
- sc_VisionMainViewer.Panel1.Controls.Add(tlp_VisionMainForm);
- //
- // sc_VisionMainViewer.Panel2
- //
- sc_VisionMainViewer.Panel2.Controls.Add(materialTabControl);
- sc_VisionMainViewer.Size = new Size(1776, 873);
- sc_VisionMainViewer.SplitterDistance = 124;
- sc_VisionMainViewer.SplitterWidth = 5;
- sc_VisionMainViewer.TabIndex = 0;
- //
- // tlp_VisionMainForm
- //
- tlp_VisionMainForm.BackColor = Color.FromArgb(39, 51, 63);
- tlp_VisionMainForm.ColumnCount = 1;
- tlp_VisionMainForm.ColumnStyles.Add(new ColumnStyle(SizeType.Percent, 100F));
- tlp_VisionMainForm.Controls.Add(tlp_VisionMainOperator, 0, 1);
- tlp_VisionMainForm.Controls.Add(materialTabSelector, 0, 0);
- tlp_VisionMainForm.Dock = DockStyle.Fill;
- tlp_VisionMainForm.Location = new Point(0, 0);
- tlp_VisionMainForm.Margin = new Padding(4);
- tlp_VisionMainForm.Name = "tlp_VisionMainForm";
- tlp_VisionMainForm.RowCount = 2;
- tlp_VisionMainForm.RowStyles.Add(new RowStyle(SizeType.Absolute, 76F));
- tlp_VisionMainForm.RowStyles.Add(new RowStyle(SizeType.Absolute, 49F));
- tlp_VisionMainForm.Size = new Size(1776, 124);
- tlp_VisionMainForm.TabIndex = 0;
- tlp_VisionMainForm.TagString = null;
+ materialTabControl.AccessibleRole = AccessibleRole.Sound;
+ materialTabControl.Depth = 0;
+ materialTabControl.Dock = DockStyle.Fill;
+ materialTabControl.Location = new Point(2, 81);
+ materialTabControl.Margin = new Padding(2);
+ materialTabControl.MouseState = MaterialSkin.MouseState.HOVER;
+ materialTabControl.Name = "materialTabControl";
+ materialTabControl.SelectedIndex = 0;
+ materialTabControl.Size = new Size(1128, 395);
+ materialTabControl.TabIndex = 0;
//
// tlp_VisionMainOperator
//
@@ -156,12 +140,11 @@
tlp_VisionMainOperator.Controls.Add(btn_GlobalVar, 7, 0);
tlp_VisionMainOperator.Controls.Add(com_ProductName, 8, 0);
tlp_VisionMainOperator.Dock = DockStyle.Fill;
- tlp_VisionMainOperator.Location = new Point(4, 80);
- tlp_VisionMainOperator.Margin = new Padding(4);
+ tlp_VisionMainOperator.Location = new Point(3, 51);
tlp_VisionMainOperator.Name = "tlp_VisionMainOperator";
tlp_VisionMainOperator.RowCount = 1;
tlp_VisionMainOperator.RowStyles.Add(new RowStyle(SizeType.Percent, 100F));
- tlp_VisionMainOperator.Size = new Size(1768, 41);
+ tlp_VisionMainOperator.Size = new Size(1126, 25);
tlp_VisionMainOperator.TabIndex = 0;
tlp_VisionMainOperator.TagString = null;
//
@@ -170,11 +153,10 @@
ckb_AllowRun.Dock = DockStyle.Fill;
ckb_AllowRun.Font = new Font("瀹嬩綋", 12F, FontStyle.Regular, GraphicsUnit.Point, 134);
ckb_AllowRun.ForeColor = SystemColors.Control;
- ckb_AllowRun.Location = new Point(4, 4);
- ckb_AllowRun.Margin = new Padding(4);
+ ckb_AllowRun.Location = new Point(3, 3);
ckb_AllowRun.MinimumSize = new Size(1, 1);
ckb_AllowRun.Name = "ckb_AllowRun";
- ckb_AllowRun.Size = new Size(188, 33);
+ ckb_AllowRun.Size = new Size(119, 19);
ckb_AllowRun.TabIndex = 2;
ckb_AllowRun.Text = "杩愯妯″紡";
//
@@ -189,12 +171,11 @@
btn_Login.Image = null;
btn_Login.ImageAlign = ContentAlignment.MiddleLeft;
btn_Login.InactiveColor = Color.FromArgb(32, 34, 37);
- btn_Login.Location = new Point(200, 4);
- btn_Login.Margin = new Padding(4);
+ btn_Login.Location = new Point(128, 3);
btn_Login.Name = "btn_Login";
btn_Login.PressedBorderColor = Color.FromArgb(165, 37, 37);
btn_Login.PressedColor = Color.FromArgb(165, 37, 37);
- btn_Login.Size = new Size(188, 33);
+ btn_Login.Size = new Size(119, 19);
btn_Login.TabIndex = 3;
btn_Login.Text = "鐢ㄦ埛鐧诲綍";
btn_Login.TextAlignment = StringAlignment.Center;
@@ -211,12 +192,11 @@
btn_GlobalVar.Image = null;
btn_GlobalVar.ImageAlign = ContentAlignment.MiddleLeft;
btn_GlobalVar.InactiveColor = Color.FromArgb(32, 34, 37);
- btn_GlobalVar.Location = new Point(1376, 4);
- btn_GlobalVar.Margin = new Padding(4);
+ btn_GlobalVar.Location = new Point(878, 3);
btn_GlobalVar.Name = "btn_GlobalVar";
btn_GlobalVar.PressedBorderColor = Color.FromArgb(165, 37, 37);
btn_GlobalVar.PressedColor = Color.FromArgb(165, 37, 37);
- btn_GlobalVar.Size = new Size(188, 33);
+ btn_GlobalVar.Size = new Size(119, 19);
btn_GlobalVar.TabIndex = 4;
btn_GlobalVar.Text = "鍏ㄥ眬鍙橀噺";
btn_GlobalVar.TextAlignment = StringAlignment.Center;
@@ -230,61 +210,22 @@
com_ProductName.EnabledCalc = true;
com_ProductName.FormattingEnabled = true;
com_ProductName.ItemHeight = 20;
- com_ProductName.Location = new Point(1572, 4);
- com_ProductName.Margin = new Padding(4);
+ com_ProductName.Location = new Point(1003, 3);
com_ProductName.Name = "com_ProductName";
- com_ProductName.Size = new Size(192, 26);
+ com_ProductName.Size = new Size(120, 26);
com_ProductName.TabIndex = 5;
com_ProductName.SelectedValueChanged += com_ProductName_SelectedValueChanged;
//
// materialTabSelector
//
- materialTabSelector.BaseTabControl = materialTabControl;
+ materialTabSelector.BaseTabControl = null;
materialTabSelector.Depth = 0;
materialTabSelector.Dock = DockStyle.Fill;
- materialTabSelector.Location = new Point(4, 4);
- materialTabSelector.Margin = new Padding(4);
+ materialTabSelector.Location = new Point(3, 3);
materialTabSelector.MouseState = MaterialSkin.MouseState.HOVER;
materialTabSelector.Name = "materialTabSelector";
- materialTabSelector.Size = new Size(1768, 68);
+ materialTabSelector.Size = new Size(1126, 42);
materialTabSelector.TabIndex = 1;
- //
- // materialTabControl
- //
- materialTabControl.AccessibleRole = AccessibleRole.Sound;
- materialTabControl.Controls.Add(tabPage1);
- materialTabControl.Controls.Add(tabPage2);
- materialTabControl.Depth = 0;
- materialTabControl.Dock = DockStyle.Fill;
- materialTabControl.Location = new Point(0, 0);
- materialTabControl.Margin = new Padding(4);
- materialTabControl.MouseState = MaterialSkin.MouseState.HOVER;
- materialTabControl.Name = "materialTabControl";
- materialTabControl.SelectedIndex = 0;
- materialTabControl.Size = new Size(1776, 744);
- materialTabControl.TabIndex = 0;
- //
- // tabPage1
- //
- tabPage1.Font = new Font("Microsoft YaHei UI", 9F, FontStyle.Regular, GraphicsUnit.Point, 134);
- tabPage1.Location = new Point(4, 36);
- tabPage1.Margin = new Padding(4);
- tabPage1.Name = "tabPage1";
- tabPage1.Size = new Size(1768, 704);
- tabPage1.TabIndex = 0;
- tabPage1.Text = "tabPage1";
- tabPage1.UseVisualStyleBackColor = true;
- //
- // tabPage2
- //
- tabPage2.Font = new Font("Microsoft YaHei UI", 9F, FontStyle.Regular, GraphicsUnit.Point, 134);
- tabPage2.Location = new Point(4, 29);
- tabPage2.Margin = new Padding(4);
- tabPage2.Name = "tabPage2";
- tabPage2.Size = new Size(1768, 711);
- tabPage2.TabIndex = 1;
- tabPage2.Text = "tabPage2";
- tabPage2.UseVisualStyleBackColor = true;
//
// grb_Info
//
@@ -294,11 +235,11 @@
grb_Info.Font = new Font("瀹嬩綋", 12F, FontStyle.Regular, GraphicsUnit.Point, 134);
grb_Info.ForeColor = SystemColors.Control;
grb_Info.Location = new Point(0, 0);
- grb_Info.Margin = new Padding(5, 6, 5, 6);
+ grb_Info.Margin = new Padding(4, 5, 4, 5);
grb_Info.MinimumSize = new Size(1, 1);
grb_Info.Name = "grb_Info";
- grb_Info.Padding = new Padding(0, 40, 0, 0);
- grb_Info.Size = new Size(1776, 223);
+ grb_Info.Padding = new Padding(0, 32, 0, 0);
+ grb_Info.Size = new Size(1132, 143);
grb_Info.TabIndex = 1;
grb_Info.Text = "鏃ュ織鏄剧ず鍖猴細";
grb_Info.TextAlignment = ContentAlignment.MiddleLeft;
@@ -308,13 +249,13 @@
rich_Info.Dock = DockStyle.Fill;
rich_Info.FillColor = Color.FromArgb(32, 41, 50);
rich_Info.Font = new Font("瀹嬩綋", 12F, FontStyle.Regular, GraphicsUnit.Point, 134);
- rich_Info.Location = new Point(0, 40);
+ rich_Info.Location = new Point(0, 32);
rich_Info.Margin = new Padding(4, 5, 4, 5);
rich_Info.MinimumSize = new Size(1, 1);
rich_Info.Name = "rich_Info";
rich_Info.Padding = new Padding(2);
rich_Info.ShowText = false;
- rich_Info.Size = new Size(1776, 183);
+ rich_Info.Size = new Size(1132, 111);
rich_Info.TabIndex = 0;
rich_Info.TextAlignment = ContentAlignment.MiddleLeft;
//
@@ -328,8 +269,7 @@
cb_VisionForm.EnableMaximizeButton = true;
cb_VisionForm.EnableMinimizeButton = true;
cb_VisionForm.ForeColor = Color.FromArgb(155, 155, 155);
- cb_VisionForm.Location = new Point(1675, 18);
- cb_VisionForm.Margin = new Padding(4);
+ cb_VisionForm.Location = new Point(1052, 18);
cb_VisionForm.MaximizeHoverColor = Color.FromArgb(74, 74, 74);
cb_VisionForm.MinimizeHoverColor = Color.FromArgb(63, 63, 65);
cb_VisionForm.Name = "cb_VisionForm";
@@ -339,30 +279,25 @@
//
// VisionForm
//
- AutoScaleDimensions = new SizeF(120F, 120F);
+ AutoScaleDimensions = new SizeF(96F, 96F);
AutoScaleMode = AutoScaleMode.Dpi;
- ClientSize = new Size(1800, 1200);
+ ClientSize = new Size(1152, 704);
Controls.Add(theme_VisionForm);
FormBorderStyle = FormBorderStyle.None;
Icon = (Icon)resources.GetObject("$this.Icon");
- Margin = new Padding(4);
- MinimumSize = new Size(326, 76);
+ MinimumSize = new Size(261, 61);
Name = "VisionForm";
Text = "杞儙澶栬瑙嗚妫�娴嬬郴缁�";
TransparencyKey = Color.Fuchsia;
+ FormClosing += VisionForm_FormClosing;
Load += VisionForm_Load;
theme_VisionForm.ResumeLayout(false);
sc_VisionForm.Panel1.ResumeLayout(false);
sc_VisionForm.Panel2.ResumeLayout(false);
((System.ComponentModel.ISupportInitialize)sc_VisionForm).EndInit();
sc_VisionForm.ResumeLayout(false);
- sc_VisionMainViewer.Panel1.ResumeLayout(false);
- sc_VisionMainViewer.Panel2.ResumeLayout(false);
- ((System.ComponentModel.ISupportInitialize)sc_VisionMainViewer).EndInit();
- sc_VisionMainViewer.ResumeLayout(false);
- tlp_VisionMainForm.ResumeLayout(false);
+ tlp_MainView.ResumeLayout(false);
tlp_VisionMainOperator.ResumeLayout(false);
- materialTabControl.ResumeLayout(false);
grb_Info.ResumeLayout(false);
ResumeLayout(false);
}
@@ -372,18 +307,15 @@
private ReaLTaiizor.Forms.ThemeForm theme_VisionForm;
private ReaLTaiizor.Controls.ControlBox cb_VisionForm;
private SplitContainer sc_VisionForm;
- private SplitContainer sc_VisionMainViewer;
private Sunny.UI.UITableLayoutPanel tlp_VisionMainOperator;
private Sunny.UI.UICheckBox ckb_AllowRun;
private ReaLTaiizor.Controls.Button btn_Login;
private ReaLTaiizor.Controls.Button btn_GlobalVar;
- private Sunny.UI.UITableLayoutPanel tlp_VisionMainForm;
private Sunny.UI.UIGroupBox grb_Info;
private Sunny.UI.UIRichTextBox rich_Info;
private MaterialSkin.Controls.MaterialTabControl materialTabControl;
private ReaLTaiizor.Controls.AloneComboBox com_ProductName;
private MaterialSkin.Controls.MaterialTabSelector materialTabSelector;
- private TabPage tabPage1;
- private TabPage tabPage2;
+ private Sunny.UI.UITableLayoutPanel tlp_MainView;
}
}
\ No newline at end of file
--
Gitblit v1.9.3