From 5b419c5a4fd892b1777e8c5ac584bf2df3cbbb3e Mon Sep 17 00:00:00 2001 From: lu <99954486@qq.com> Date: 星期五, 28 二月 2025 16:32:12 +0800 Subject: [PATCH] 布局 --- DevApp/Gs.DevApp/DevFrm/XtraForm1.Designer.cs | 167 +++++++++++++++++++++++++++++++------------------------ 1 files changed, 95 insertions(+), 72 deletions(-) diff --git a/DevApp/Gs.DevApp/DevFrm/XtraForm1.Designer.cs b/DevApp/Gs.DevApp/DevFrm/XtraForm1.Designer.cs index f9dc95f..f9b45eb 100644 --- a/DevApp/Gs.DevApp/DevFrm/XtraForm1.Designer.cs +++ b/DevApp/Gs.DevApp/DevFrm/XtraForm1.Designer.cs @@ -35,35 +35,39 @@ DevExpress.XtraLayout.RowDefinition rowDefinition3 = new DevExpress.XtraLayout.RowDefinition(); this.splitContainerControl1 = new DevExpress.XtraEditors.SplitContainerControl(); this.layoutControl1 = new DevExpress.XtraLayout.LayoutControl(); - this.Root = new DevExpress.XtraLayout.LayoutControlGroup(); this.textEdit1 = new DevExpress.XtraEditors.TextEdit(); - this.layoutControlItem1 = new DevExpress.XtraLayout.LayoutControlItem(); this.textEdit2 = new DevExpress.XtraEditors.TextEdit(); - this.layoutControlItem2 = new DevExpress.XtraLayout.LayoutControlItem(); this.simpleButton1 = new DevExpress.XtraEditors.SimpleButton(); - this.layoutControlItem3 = new DevExpress.XtraLayout.LayoutControlItem(); this.dateEdit1 = new DevExpress.XtraEditors.DateEdit(); + this.Root = new DevExpress.XtraLayout.LayoutControlGroup(); + this.layoutControlItem1 = new DevExpress.XtraLayout.LayoutControlItem(); + this.layoutControlItem3 = new DevExpress.XtraLayout.LayoutControlItem(); this.layoutControlItem4 = new DevExpress.XtraLayout.LayoutControlItem(); + this.layoutControlItem2 = new DevExpress.XtraLayout.LayoutControlItem(); + this.button1 = new System.Windows.Forms.Button(); ((System.ComponentModel.ISupportInitialize)(this.splitContainerControl1)).BeginInit(); ((System.ComponentModel.ISupportInitialize)(this.splitContainerControl1.Panel1)).BeginInit(); this.splitContainerControl1.Panel1.SuspendLayout(); ((System.ComponentModel.ISupportInitialize)(this.splitContainerControl1.Panel2)).BeginInit(); + this.splitContainerControl1.Panel2.SuspendLayout(); this.splitContainerControl1.SuspendLayout(); ((System.ComponentModel.ISupportInitialize)(this.layoutControl1)).BeginInit(); this.layoutControl1.SuspendLayout(); - ((System.ComponentModel.ISupportInitialize)(this.Root)).BeginInit(); ((System.ComponentModel.ISupportInitialize)(this.textEdit1.Properties)).BeginInit(); - ((System.ComponentModel.ISupportInitialize)(this.layoutControlItem1)).BeginInit(); ((System.ComponentModel.ISupportInitialize)(this.textEdit2.Properties)).BeginInit(); - ((System.ComponentModel.ISupportInitialize)(this.layoutControlItem2)).BeginInit(); - ((System.ComponentModel.ISupportInitialize)(this.layoutControlItem3)).BeginInit(); ((System.ComponentModel.ISupportInitialize)(this.dateEdit1.Properties)).BeginInit(); ((System.ComponentModel.ISupportInitialize)(this.dateEdit1.Properties.CalendarTimeProperties)).BeginInit(); + ((System.ComponentModel.ISupportInitialize)(this.Root)).BeginInit(); + ((System.ComponentModel.ISupportInitialize)(this.layoutControlItem1)).BeginInit(); + ((System.ComponentModel.ISupportInitialize)(this.layoutControlItem3)).BeginInit(); ((System.ComponentModel.ISupportInitialize)(this.layoutControlItem4)).BeginInit(); + ((System.ComponentModel.ISupportInitialize)(this.layoutControlItem2)).BeginInit(); this.SuspendLayout(); // // splitContainerControl1 // + this.splitContainerControl1.Collapsed = true; + this.splitContainerControl1.CollapsePanel = DevExpress.XtraEditors.SplitCollapsePanel.Panel1; this.splitContainerControl1.Dock = System.Windows.Forms.DockStyle.Fill; this.splitContainerControl1.Horizontal = false; this.splitContainerControl1.Location = new System.Drawing.Point(0, 0); @@ -71,18 +75,22 @@ // // splitContainerControl1.Panel1 // + this.splitContainerControl1.Panel1.AutoScroll = true; this.splitContainerControl1.Panel1.Controls.Add(this.layoutControl1); this.splitContainerControl1.Panel1.Text = "Panel1"; // // splitContainerControl1.Panel2 // + this.splitContainerControl1.Panel2.Controls.Add(this.button1); this.splitContainerControl1.Panel2.Text = "Panel2"; + this.splitContainerControl1.ShowSplitGlyph = DevExpress.Utils.DefaultBoolean.True; this.splitContainerControl1.Size = new System.Drawing.Size(1057, 660); - this.splitContainerControl1.SplitterPosition = 279; + this.splitContainerControl1.SplitterPosition = 76; this.splitContainerControl1.TabIndex = 0; // // layoutControl1 // + this.layoutControl1.AutoScroll = false; this.layoutControl1.Controls.Add(this.textEdit1); this.layoutControl1.Controls.Add(this.textEdit2); this.layoutControl1.Controls.Add(this.simpleButton1); @@ -90,10 +98,51 @@ this.layoutControl1.Dock = System.Windows.Forms.DockStyle.Fill; this.layoutControl1.Location = new System.Drawing.Point(0, 0); this.layoutControl1.Name = "layoutControl1"; + this.layoutControl1.OptionsCustomizationForm.DefaultPage = DevExpress.XtraLayout.CustomizationPage.LayoutTreeView; + this.layoutControl1.OptionsCustomizationForm.DesignTimeCustomizationFormPositionAndSize = new System.Drawing.Rectangle(1108, 0, 812, 500); + this.layoutControl1.OptionsCustomizationForm.SnapMode = DevExpress.Utils.Controls.SnapMode.OwnerControl; this.layoutControl1.Root = this.Root; - this.layoutControl1.Size = new System.Drawing.Size(1057, 279); + this.layoutControl1.Size = new System.Drawing.Size(0, 0); this.layoutControl1.TabIndex = 0; this.layoutControl1.Text = "layoutControl1"; + // + // textEdit1 + // + this.textEdit1.Location = new System.Drawing.Point(148, 12); + this.textEdit1.Name = "textEdit1"; + this.textEdit1.Size = new System.Drawing.Size(62, 24); + this.textEdit1.StyleController = this.layoutControl1; + this.textEdit1.TabIndex = 4; + // + // textEdit2 + // + this.textEdit2.Location = new System.Drawing.Point(350, 12); + this.textEdit2.Name = "textEdit2"; + this.textEdit2.Size = new System.Drawing.Size(62, 24); + this.textEdit2.StyleController = this.layoutControl1; + this.textEdit2.TabIndex = 5; + // + // simpleButton1 + // + this.simpleButton1.Location = new System.Drawing.Point(12, 43); + this.simpleButton1.Name = "simpleButton1"; + this.simpleButton1.Size = new System.Drawing.Size(198, 27); + this.simpleButton1.StyleController = this.layoutControl1; + this.simpleButton1.TabIndex = 6; + this.simpleButton1.Text = "simpleButton1"; + // + // dateEdit1 + // + this.dateEdit1.EditValue = null; + this.dateEdit1.Location = new System.Drawing.Point(350, 43); + this.dateEdit1.Name = "dateEdit1"; + this.dateEdit1.Properties.Buttons.AddRange(new DevExpress.XtraEditors.Controls.EditorButton[] { + new DevExpress.XtraEditors.Controls.EditorButton(DevExpress.XtraEditors.Controls.ButtonPredefines.Combo)}); + this.dateEdit1.Properties.CalendarTimeProperties.Buttons.AddRange(new DevExpress.XtraEditors.Controls.EditorButton[] { + new DevExpress.XtraEditors.Controls.EditorButton(DevExpress.XtraEditors.Controls.ButtonPredefines.Combo)}); + this.dateEdit1.Size = new System.Drawing.Size(62, 24); + this.dateEdit1.StyleController = this.layoutControl1; + this.dateEdit1.TabIndex = 7; // // Root // @@ -101,9 +150,9 @@ this.Root.GroupBordersVisible = false; this.Root.Items.AddRange(new DevExpress.XtraLayout.BaseLayoutItem[] { this.layoutControlItem1, - this.layoutControlItem2, this.layoutControlItem3, - this.layoutControlItem4}); + this.layoutControlItem4, + this.layoutControlItem2}); this.Root.LayoutMode = DevExpress.XtraLayout.Utils.LayoutMode.Table; this.Root.Name = "Root"; columnDefinition1.SizeType = System.Windows.Forms.SizeType.Percent; @@ -117,89 +166,61 @@ rowDefinition1.SizeType = System.Windows.Forms.SizeType.Percent; rowDefinition2.Height = 100D; rowDefinition2.SizeType = System.Windows.Forms.SizeType.Percent; - rowDefinition3.Height = 87D; + rowDefinition3.Height = 20D; rowDefinition3.SizeType = System.Windows.Forms.SizeType.AutoSize; this.Root.OptionsTableLayoutGroup.RowDefinitions.AddRange(new DevExpress.XtraLayout.RowDefinition[] { rowDefinition1, rowDefinition2, rowDefinition3}); - this.Root.Size = new System.Drawing.Size(1057, 279); + this.Root.Size = new System.Drawing.Size(424, 102); this.Root.TextVisible = false; - // - // textEdit1 - // - this.textEdit1.Location = new System.Drawing.Point(148, 12); - this.textEdit1.Name = "textEdit1"; - this.textEdit1.Size = new System.Drawing.Size(378, 24); - this.textEdit1.StyleController = this.layoutControl1; - this.textEdit1.TabIndex = 4; // // layoutControlItem1 // this.layoutControlItem1.Control = this.textEdit1; this.layoutControlItem1.Location = new System.Drawing.Point(0, 0); this.layoutControlItem1.Name = "layoutControlItem1"; - this.layoutControlItem1.Size = new System.Drawing.Size(518, 86); + this.layoutControlItem1.Size = new System.Drawing.Size(202, 31); this.layoutControlItem1.TextSize = new System.Drawing.Size(124, 18); - // - // textEdit2 - // - this.textEdit2.Location = new System.Drawing.Point(666, 12); - this.textEdit2.Name = "textEdit2"; - this.textEdit2.Size = new System.Drawing.Size(379, 24); - this.textEdit2.StyleController = this.layoutControl1; - this.textEdit2.TabIndex = 5; - // - // layoutControlItem2 - // - this.layoutControlItem2.Control = this.textEdit2; - this.layoutControlItem2.Location = new System.Drawing.Point(518, 0); - this.layoutControlItem2.Name = "layoutControlItem2"; - this.layoutControlItem2.OptionsTableLayoutItem.ColumnIndex = 1; - this.layoutControlItem2.Size = new System.Drawing.Size(519, 86); - this.layoutControlItem2.TextSize = new System.Drawing.Size(124, 18); - // - // simpleButton1 - // - this.simpleButton1.Location = new System.Drawing.Point(12, 98); - this.simpleButton1.Name = "simpleButton1"; - this.simpleButton1.Size = new System.Drawing.Size(514, 27); - this.simpleButton1.StyleController = this.layoutControl1; - this.simpleButton1.TabIndex = 6; - this.simpleButton1.Text = "simpleButton1"; // // layoutControlItem3 // this.layoutControlItem3.Control = this.simpleButton1; - this.layoutControlItem3.Location = new System.Drawing.Point(0, 86); + this.layoutControlItem3.Location = new System.Drawing.Point(0, 31); this.layoutControlItem3.Name = "layoutControlItem3"; this.layoutControlItem3.OptionsTableLayoutItem.RowIndex = 1; - this.layoutControlItem3.Size = new System.Drawing.Size(518, 86); + this.layoutControlItem3.Size = new System.Drawing.Size(202, 31); this.layoutControlItem3.TextSize = new System.Drawing.Size(0, 0); this.layoutControlItem3.TextVisible = false; - // - // dateEdit1 - // - this.dateEdit1.EditValue = null; - this.dateEdit1.Location = new System.Drawing.Point(666, 98); - this.dateEdit1.Name = "dateEdit1"; - this.dateEdit1.Properties.Buttons.AddRange(new DevExpress.XtraEditors.Controls.EditorButton[] { - new DevExpress.XtraEditors.Controls.EditorButton(DevExpress.XtraEditors.Controls.ButtonPredefines.Combo)}); - this.dateEdit1.Properties.CalendarTimeProperties.Buttons.AddRange(new DevExpress.XtraEditors.Controls.EditorButton[] { - new DevExpress.XtraEditors.Controls.EditorButton(DevExpress.XtraEditors.Controls.ButtonPredefines.Combo)}); - this.dateEdit1.Size = new System.Drawing.Size(379, 24); - this.dateEdit1.StyleController = this.layoutControl1; - this.dateEdit1.TabIndex = 7; // // layoutControlItem4 // this.layoutControlItem4.Control = this.dateEdit1; - this.layoutControlItem4.Location = new System.Drawing.Point(518, 86); + this.layoutControlItem4.Location = new System.Drawing.Point(202, 31); this.layoutControlItem4.Name = "layoutControlItem4"; this.layoutControlItem4.OptionsTableLayoutItem.ColumnIndex = 1; this.layoutControlItem4.OptionsTableLayoutItem.RowIndex = 1; - this.layoutControlItem4.Size = new System.Drawing.Size(519, 86); + this.layoutControlItem4.Size = new System.Drawing.Size(202, 31); this.layoutControlItem4.TextSize = new System.Drawing.Size(124, 18); + // + // layoutControlItem2 + // + this.layoutControlItem2.Control = this.textEdit2; + this.layoutControlItem2.Location = new System.Drawing.Point(202, 0); + this.layoutControlItem2.Name = "layoutControlItem2"; + this.layoutControlItem2.OptionsTableLayoutItem.ColumnIndex = 1; + this.layoutControlItem2.Size = new System.Drawing.Size(202, 31); + this.layoutControlItem2.TextSize = new System.Drawing.Size(124, 18); + // + // button1 + // + this.button1.Location = new System.Drawing.Point(346, 110); + this.button1.Name = "button1"; + this.button1.Size = new System.Drawing.Size(75, 23); + this.button1.TabIndex = 0; + this.button1.Text = "button1"; + this.button1.UseVisualStyleBackColor = true; + this.button1.Click += new System.EventHandler(this.button1_Click); // // XtraForm1 // @@ -213,19 +234,20 @@ ((System.ComponentModel.ISupportInitialize)(this.splitContainerControl1.Panel1)).EndInit(); this.splitContainerControl1.Panel1.ResumeLayout(false); ((System.ComponentModel.ISupportInitialize)(this.splitContainerControl1.Panel2)).EndInit(); + this.splitContainerControl1.Panel2.ResumeLayout(false); ((System.ComponentModel.ISupportInitialize)(this.splitContainerControl1)).EndInit(); this.splitContainerControl1.ResumeLayout(false); ((System.ComponentModel.ISupportInitialize)(this.layoutControl1)).EndInit(); this.layoutControl1.ResumeLayout(false); - ((System.ComponentModel.ISupportInitialize)(this.Root)).EndInit(); ((System.ComponentModel.ISupportInitialize)(this.textEdit1.Properties)).EndInit(); - ((System.ComponentModel.ISupportInitialize)(this.layoutControlItem1)).EndInit(); ((System.ComponentModel.ISupportInitialize)(this.textEdit2.Properties)).EndInit(); - ((System.ComponentModel.ISupportInitialize)(this.layoutControlItem2)).EndInit(); - ((System.ComponentModel.ISupportInitialize)(this.layoutControlItem3)).EndInit(); ((System.ComponentModel.ISupportInitialize)(this.dateEdit1.Properties.CalendarTimeProperties)).EndInit(); ((System.ComponentModel.ISupportInitialize)(this.dateEdit1.Properties)).EndInit(); + ((System.ComponentModel.ISupportInitialize)(this.Root)).EndInit(); + ((System.ComponentModel.ISupportInitialize)(this.layoutControlItem1)).EndInit(); + ((System.ComponentModel.ISupportInitialize)(this.layoutControlItem3)).EndInit(); ((System.ComponentModel.ISupportInitialize)(this.layoutControlItem4)).EndInit(); + ((System.ComponentModel.ISupportInitialize)(this.layoutControlItem2)).EndInit(); this.ResumeLayout(false); } @@ -239,9 +261,10 @@ private DevExpress.XtraEditors.SimpleButton simpleButton1; private DevExpress.XtraEditors.DateEdit dateEdit1; private DevExpress.XtraLayout.LayoutControlGroup Root; - private DevExpress.XtraLayout.LayoutControlItem layoutControlItem1; - private DevExpress.XtraLayout.LayoutControlItem layoutControlItem2; private DevExpress.XtraLayout.LayoutControlItem layoutControlItem3; private DevExpress.XtraLayout.LayoutControlItem layoutControlItem4; + private DevExpress.XtraLayout.LayoutControlItem layoutControlItem2; + private System.Windows.Forms.Button button1; + private DevExpress.XtraLayout.LayoutControlItem layoutControlItem1; } } \ No newline at end of file -- Gitblit v1.9.3