From 7e7e1a718e449a316bc543d4859fdb058c26b935 Mon Sep 17 00:00:00 2001 From: Laurence Luo Date: Tue, 19 Mar 2024 11:34:52 +0800 Subject: [PATCH] Fix UI Fix the overflow of lblcontent --- FrmMain.Designer.cs | 10 +++++----- FrmMain.resx | 22 ++++++++++------------ 2 files changed, 15 insertions(+), 17 deletions(-) diff --git a/FrmMain.Designer.cs b/FrmMain.Designer.cs index d75088e..6bc0bb9 100644 --- a/FrmMain.Designer.cs +++ b/FrmMain.Designer.cs @@ -401,7 +401,7 @@ private void InitializeComponent() { splitContainerDetail.Panel2.Controls.Add(tableLayoutPanel); splitContainerDetail.Panel2MinSize = 200; splitContainerDetail.Size = new Size(656, 508); - splitContainerDetail.SplitterDistance = 298; + splitContainerDetail.SplitterDistance = 260; splitContainerDetail.TabIndex = 1; // // dataGridView @@ -422,7 +422,7 @@ private void InitializeComponent() { dataGridView.RowHeadersVisible = false; dataGridView.RowHeadersWidth = 82; dataGridView.SelectionMode = DataGridViewSelectionMode.FullRowSelect; - dataGridView.Size = new Size(656, 298); + dataGridView.Size = new Size(656, 260); dataGridView.TabIndex = 0; dataGridView.CellDoubleClick += DataGridView_CellDoubleClick; dataGridView.CellMouseDown += DataGridView_CellMouseDown; @@ -448,7 +448,7 @@ private void InitializeComponent() { tableLayoutPanel.RowStyles.Add(new RowStyle()); tableLayoutPanel.RowStyles.Add(new RowStyle()); tableLayoutPanel.RowStyles.Add(new RowStyle(SizeType.Absolute, 20F)); - tableLayoutPanel.Size = new Size(656, 206); + tableLayoutPanel.Size = new Size(656, 244); tableLayoutPanel.TabIndex = 0; tableLayoutPanel.MouseDoubleClick += LblContent_MouseDoubleClick; // @@ -504,17 +504,17 @@ private void InitializeComponent() { // // lblContent // + lblContent.Anchor = AnchorStyles.Top | AnchorStyles.Bottom | AnchorStyles.Left | AnchorStyles.Right; lblContent.BackColor = SystemColors.Window; lblContent.BorderStyle = BorderStyle.None; lblContent.ContextMenuStrip = menuClippings; - lblContent.Dock = DockStyle.Fill; lblContent.Font = new Font("微软雅黑", 9.857143F, FontStyle.Regular, GraphicsUnit.Point, 134); lblContent.Location = new Point(5, 76); lblContent.Margin = new Padding(5); lblContent.Name = "lblContent"; lblContent.ReadOnly = true; lblContent.ScrollBars = RichTextBoxScrollBars.Vertical; - lblContent.Size = new Size(646, 288); + lblContent.Size = new Size(646, 163); lblContent.TabIndex = 4; lblContent.Text = ""; lblContent.MouseDoubleClick += LblContent_MouseDoubleClick; diff --git a/FrmMain.resx b/FrmMain.resx index 2381a84..d989abf 100644 --- a/FrmMain.resx +++ b/FrmMain.resx @@ -122,18 +122,17 @@ - 498, 17 + 361, 17 17, 17 - AAEAAAD/////AQAAAAAAAAAMAgAAAEZTeXN0ZW0uV2luZG93cy5Gb3JtcywgQ3VsdHVyZT1uZXV0cmFs LCBQdWJsaWNLZXlUb2tlbj1iNzdhNWM1NjE5MzRlMDg5BQEAAAAmU3lzdGVtLldpbmRvd3MuRm9ybXMu SW1hZ2VMaXN0U3RyZWFtZXIBAAAABERhdGEHAgIAAAAJAwAAAA8DAAAAKh8AAAJNU0Z0AUkBTAIBAQMB - AAEIAQUBCAEFARQBAAEUAQAD/wEAASEBAAj/AUIBTQE2BwABNgMAASgDAAFQAwABFAMAAQEBAAEgBgAB + AAEgAQUBIAEFARQBAAEUAQAD/wEAASEBAAj/AUIBTQE2BwABNgMAASgDAAFQAwABFAMAAQEBAAEgBgAB GRIAAxEBFgNKAYkCWAFaAb0DXQHMA10BzANdAcwDXQHMA10BzANdAcwDXQHMA10BzANdAcwDXQHMA10B zAJcAV8ByANYAbgDMQFMAw8BFGAAAzYBWQFCAUEBQgFyAUIBQQFCAXIDQgFyA0IBcwNCAXIDQgFyA0IB cgNCAXIDQgFyA0IBcgNCAXIDQgFyA0IBcgNCAXIDQgFyA0EBcQMYASFQAAM2AVkCXQFgAc4CUQFvAfcB @@ -269,14 +268,14 @@ - 255, 17 + 187, 17 AAEAAAD/////AQAAAAAAAAAMAgAAAEZTeXN0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