Group: Forum Members
Last Active: 13 Years Ago
Posts: 22,
Visits: 1
|
Hi, I'm having problems getting a set of controls to work together.
I have a user control with an NUIPanel (panMaster) on it. The panMaster control is set to Dock=Full.
The panMaster control has two NUIPanels (panWorking & panCompleted) on it separated by a Splitter (splitter1). panCompleted has Dock=Bottom, splitter1 has Dock=Bottom, panWorking has Dock=Full.
I want vertical and horizontal scrollbars to appear when the control is resized to a too small of a size. How do I accomplish this please?
Thanks!
Designer Code:
namespace WinUI.Controls.Orders { partial class ctlOrders2 { /// /// Required designer variable. /// private System.ComponentModel.IContainer components = null;
#region Component Designer generated code
/// /// Required method for Designer support - do not modify /// the contents of this method with the code editor. /// private void InitializeComponent() { this.components = new System.ComponentModel.Container(); System.ComponentModel.ComponentResourceManager resources = new System.ComponentModel.ComponentResourceManager(typeof(ctlOrders2)); this.imgIcons = new System.Windows.Forms.ImageList(this.components); this.contextMenuStrip1 = new System.Windows.Forms.ContextMenuStrip(this.components); this.cancelOrderToolStripMenuItem = new System.Windows.Forms.ToolStripMenuItem(); this.panMaster = new Nevron.UI.WinForm.Controls.NUIPanel(); this.panWorking = new Nevron.UI.WinForm.Controls.NUIPanel(); this.btnChooseWorkingColumns = new Nevron.UI.WinForm.Controls.NButton(); this.ntlWorkingOrders = new Nevron.UI.WinForm.Controls.NTreeList(); this.label2 = new System.Windows.Forms.Label(); this.btnCancelAll = new Nevron.UI.WinForm.Controls.NButton(); this.orderSplitter = new Nevron.UI.WinForm.Controls.NSplitter(); this.panCompleted = new Nevron.UI.WinForm.Controls.NUIPanel(); this.label1 = new System.Windows.Forms.Label(); this.ntlCompletedOrders = new Nevron.UI.WinForm.Controls.NTreeList(); this.btnChooseCompletedColumns = new Nevron.UI.WinForm.Controls.NButton(); this.btnExport = new Nevron.UI.WinForm.Controls.NButton(); this.contextMenuStrip1.SuspendLayout(); this.panMaster.SuspendLayout(); this.panWorking.SuspendLayout(); this.panCompleted.SuspendLayout(); this.SuspendLayout(); // // imgIcons // this.imgIcons.ImageStream = ((System.Windows.Forms.ImageListStreamer)(resources.GetObject("imgIcons.ImageStream"))); this.imgIcons.TransparentColor = System.Drawing.Color.Transparent; this.imgIcons.Images.SetKeyName(0, "plusik.gif"); this.imgIcons.Images.SetKeyName(1, "minus.gif"); this.imgIcons.Images.SetKeyName(2, "NodeChild_Blank.gif"); this.imgIcons.Images.SetKeyName(3, "NodeChild_16.gif"); this.imgIcons.Images.SetKeyName(4, "NodeChild_Bottom.gif"); this.imgIcons.Images.SetKeyName(5, "marketOpenIcon16x16.png"); this.imgIcons.Images.SetKeyName(6, "noIcon16x16.png"); this.imgIcons.Images.SetKeyName(7, "Stop_16.png"); // // contextMenuStrip1 // this.contextMenuStrip1.Items.AddRange(new System.Windows.Forms.ToolStripItem[] { this.cancelOrderToolStripMenuItem}); this.contextMenuStrip1.Name = "contextMenuStrip1"; this.contextMenuStrip1.Size = new System.Drawing.Size(144, 26); // // cancelOrderToolStripMenuItem // this.cancelOrderToolStripMenuItem.Name = "cancelOrderToolStripMenuItem"; this.cancelOrderToolStripMenuItem.Size = new System.Drawing.Size(143, 22); this.cancelOrderToolStripMenuItem.Text = "Cancel Order"; // // panMaster // this.panMaster.Controls.Add(this.panWorking); this.panMaster.Controls.Add(this.orderSplitter); this.panMaster.Controls.Add(this.panCompleted); this.panMaster.Dock = System.Windows.Forms.DockStyle.Fill; this.panMaster.Location = new System.Drawing.Point(0, 0); this.panMaster.Name = "panMaster"; this.panMaster.Size = new System.Drawing.Size(466, 412); this.panMaster.TabIndex = 6; this.panMaster.Text = "nuiPanel2"; // // panWorking // this.panWorking.AutoScroll = true; this.panWorking.Border.Style = Nevron.UI.BorderStyle3D.None; this.panWorking.Controls.Add(this.btnChooseWorkingColumns); this.panWorking.Controls.Add(this.ntlWorkingOrders); this.panWorking.Controls.Add(this.label2); this.panWorking.Controls.Add(this.btnCancelAll); this.panWorking.Dock = System.Windows.Forms.DockStyle.Top; this.panWorking.Location = new System.Drawing.Point(0, 0); this.panWorking.Margin = new System.Windows.Forms.Padding(0); this.panWorking.MinimumSize = new System.Drawing.Size(464, 132); this.panWorking.Name = "panWorking"; this.panWorking.Size = new System.Drawing.Size(464, 132); this.panWorking.TabIndex = 8; this.panWorking.Text = "nuiPanel3"; // // btnChooseWorkingColumns // this.btnChooseWorkingColumns.Anchor = ((System.Windows.Forms.AnchorStyles)((System.Windows.Forms.AnchorStyles.Top | System.Windows.Forms.AnchorStyles.Right))); this.btnChooseWorkingColumns.Image = global::WinUI.Properties.Resources.colums; this.btnChooseWorkingColumns.ImageAlign = System.Drawing.ContentAlignment.MiddleLeft; this.btnChooseWorkingColumns.Location = new System.Drawing.Point(354, 3); this.btnChooseWorkingColumns.Name = "btnChooseWorkingColumns"; this.btnChooseWorkingColumns.Size = new System.Drawing.Size(105, 23); this.btnChooseWorkingColumns.TabIndex = 8; this.btnChooseWorkingColumns.Text = "Colum&ns"; this.btnChooseWorkingColumns.TextImageRelation = System.Windows.Forms.TextImageRelation.ImageBeforeText; this.btnChooseWorkingColumns.UseVisualStyleBackColor = false; this.btnChooseWorkingColumns.Click += new System.EventHandler(this.btnChooseWorkingColumns_Click); // // ntlWorkingOrders // this.ntlWorkingOrders.Anchor = ((System.Windows.Forms.AnchorStyles)((((System.Windows.Forms.AnchorStyles.Top | System.Windows.Forms.AnchorStyles.Bottom) | System.Windows.Forms.AnchorStyles.Left) | System.Windows.Forms.AnchorStyles.Right))); this.ntlWorkingOrders.EvenRowFillInfo.Color = System.Drawing.Color.White; this.ntlWorkingOrders.EvenRowFillInfo.Gradient1 = System.Drawing.Color.White; this.ntlWorkingOrders.EvenRowFillInfo.Gradient2 = System.Drawing.Color.White; this.ntlWorkingOrders.FillInfo.Color = System.Drawing.Color.White; this.ntlWorkingOrders.FillInfo.FillStyle = Nevron.UI.WinForm.Controls.FillStyle.Solid; this.ntlWorkingOrders.FixedColumnFillInfo.Color = System.Drawing.Color.FromArgb(((int)(((byte)(150)))), ((int)(((byte)(244)))), ((int)(((byte)(244)))), ((int)(((byte)(244))))); this.ntlWorkingOrders.FixedColumnFillInfo.Gradient2 = System.Drawing.SystemColors.ControlLightLight; this.ntlWorkingOrders.Location = new System.Drawing.Point(5, 32); this.ntlWorkingOrders.MinimumSize = new System.Drawing.Size(420, 67); this.ntlWorkingOrders.Name = "ntlWorkingOrders"; this.ntlWorkingOrders.OddRowFillInfo.Color = System.Drawing.Color.White; this.ntlWorkingOrders.OddRowFillInfo.Gradient1 = System.Drawing.Color.White; this.ntlWorkingOrders.OddRowFillInfo.Gradient2 = System.Drawing.Color.White; this.ntlWorkingOrders.Size = new System.Drawing.Size(454, 97); this.ntlWorkingOrders.TabIndex = 7; this.ntlWorkingOrders.Text = "working"; this.ntlWorkingOrders.MouseUp += new System.Windows.Forms.MouseEventHandler(this.ntlWorkingOrders_MouseUp); this.ntlWorkingOrders.ColumnNotify += new Nevron.UI.WinForm.Controls.NTreeListColumnNotifyEventHandler(this.ntlWorkingOrders_ColumnNotify); // // label2 // this.label2.AutoSize = true; this.label2.BackColor = System.Drawing.Color.Transparent; this.label2.Font = new System.Drawing.Font("Microsoft Sans Serif", 12F, System.Drawing.FontStyle.Regular, System.Drawing.GraphicsUnit.Point, ((byte)(0))); this.label2.Location = new System.Drawing.Point(3, 3); this.label2.Name = "label2"; this.label2.Size = new System.Drawing.Size(67, 20); this.label2.TabIndex = 6; this.label2.Text = "Working"; // // btnCancelAll // this.btnCancelAll.Anchor = ((System.Windows.Forms.AnchorStyles)((System.Windows.Forms.AnchorStyles.Top | System.Windows.Forms.AnchorStyles.Right))); this.btnCancelAll.Image = global::WinUI.Properties.Resources.Stop_16; this.btnCancelAll.ImageAlign = System.Drawing.ContentAlignment.MiddleLeft; this.btnCancelAll.Location = new System.Drawing.Point(243, 3); this.btnCancelAll.Name = "btnCancelAll"; this.btnCancelAll.Size = new System.Drawing.Size(105, 23); this.btnCancelAll.TabIndex = 1; this.btnCancelAll.Text = "&Cancel Selected"; this.btnCancelAll.TextAlign = System.Drawing.ContentAlignment.MiddleRight; this.btnCancelAll.TextImageRelation = System.Windows.Forms.TextImageRelation.ImageBeforeText; this.btnCancelAll.UseVisualStyleBackColor = false; this.btnCancelAll.Click += new System.EventHandler(this.btnCancelAll_Click); // // orderSplitter // this.orderSplitter.Dock = System.Windows.Forms.DockStyle.Bottom; this.orderSplitter.Location = new System.Drawing.Point(0, 132); this.orderSplitter.MinimumSize = new System.Drawing.Size(34, 5); this.orderSplitter.Name = "orderSplitter"; this.orderSplitter.Size = new System.Drawing.Size(464, 10); this.orderSplitter.TabIndex = 7; this.orderSplitter.TabStop = false; this.orderSplitter.SplitterMoved += new System.Windows.Forms.SplitterEventHandler(this.orderSplitter_SplitterMoved); // // panCompleted // this.panCompleted.BackColor = System.Drawing.SystemColors.Control; this.panCompleted.Border.Style = Nevron.UI.BorderStyle3D.None; this.panCompleted.Controls.Add(this.label1); this.panCompleted.Controls.Add(this.ntlCompletedOrders); this.panCompleted.Controls.Add(this.btnChooseCompletedColumns); this.panCompleted.Controls.Add(this.btnExport); this.panCompleted.Dock = System.Windows.Forms.DockStyle.Bottom; this.panCompleted.Location = new System.Drawing.Point(0, 142); this.panCompleted.Margin = new System.Windows.Forms.Padding(0); this.panCompleted.MinimumSize = new System.Drawing.Size(464, 132); this.panCompleted.Name = "panCompleted"; this.panCompleted.Size = new System.Drawing.Size(464, 268); this.panCompleted.TabIndex = 6; this.panCompleted.Text = "nuiPanel1"; // // label1 // this.label1.AutoSize = true; this.label1.BackColor = System.Drawing.Color.Transparent; this.label1.Font = new System.Drawing.Font("Microsoft Sans Serif", 12F, System.Drawing.FontStyle.Regular, System.Drawing.GraphicsUnit.Point, ((byte)(0))); this.label1.Location = new System.Drawing.Point(3, 3); this.label1.Name = "label1"; this.label1.Size = new System.Drawing.Size(86, 20); this.label1.TabIndex = 5; this.label1.Text = "Completed"; // // ntlCompletedOrders // this.ntlCompletedOrders.Anchor = ((System.Windows.Forms.AnchorStyles)((((System.Windows.Forms.AnchorStyles.Top | System.Windows.Forms.AnchorStyles.Bottom) | System.Windows.Forms.AnchorStyles.Left) | System.Windows.Forms.AnchorStyles.Right))); this.ntlCompletedOrders.EvenRowFillInfo.Color = System.Drawing.Color.White; this.ntlCompletedOrders.EvenRowFillInfo.Gradient1 = System.Drawing.Color.White; this.ntlCompletedOrders.EvenRowFillInfo.Gradient2 = System.Drawing.Color.White; this.ntlCompletedOrders.FillInfo.Color = System.Drawing.Color.White; this.ntlCompletedOrders.FillInfo.FillStyle = Nevron.UI.WinForm.Controls.FillStyle.Solid; this.ntlCompletedOrders.FixedColumnFillInfo.Color = System.Drawing.Color.FromArgb(((int)(((byte)(150)))), ((int)(((byte)(244)))), ((int)(((byte)(244)))), ((int)(((byte)(244))))); this.ntlCompletedOrders.FixedColumnFillInfo.Gradient2 = System.Drawing.SystemColors.ControlLightLight; this.ntlCompletedOrders.Location = new System.Drawing.Point(5, 35); this.ntlCompletedOrders.Name = "ntlCompletedOrders"; this.ntlCompletedOrders.OddRowFillInfo.Color = System.Drawing.Color.White; this.ntlCompletedOrders.OddRowFillInfo.Gradient1 = System.Drawing.Color.White; this.ntlCompletedOrders.OddRowFillInfo.Gradient2 = System.Drawing.Color.White; this.ntlCompletedOrders.Size = new System.Drawing.Size(454, 228); this.ntlCompletedOrders.TabIndex = 2; this.ntlCompletedOrders.Text = "completed"; this.ntlCompletedOrders.ColumnNotify += new Nevron.UI.WinForm.Controls.NTreeListColumnNotifyEventHandler(this.ntlCompletedOrders_ColumnNotify); // // btnChooseCompletedColumns // this.btnChooseCompletedColumns.Anchor = ((System.Windows.Forms.AnchorStyles)((System.Windows.Forms.AnchorStyles.Top | System.Windows.Forms.AnchorStyles.Right))); this.btnChooseCompletedColumns.Image = global::WinUI.Properties.Resources.colums; this.btnChooseCompletedColumns.ImageAlign = System.Drawing.ContentAlignment.MiddleLeft; this.btnChooseCompletedColumns.Location = new System.Drawing.Point(354, 6); this.btnChooseCompletedColumns.Name = "btnChooseCompletedColumns"; this.btnChooseCompletedColumns.Size = new System.Drawing.Size(105, 23); this.btnChooseCompletedColumns.TabIndex = 4; this.btnChooseCompletedColumns.Text = "Colum&ns"; this.btnChooseCompletedColumns.TextImageRelation = System.Windows.Forms.TextImageRelation.ImageBeforeText; this.btnChooseCompletedColumns.UseVisualStyleBackColor = false; this.btnChooseCompletedColumns.Click += new System.EventHandler(this.btnChooseCompletedColumns_Click); // // btnExport // this.btnExport.Anchor = ((System.Windows.Forms.AnchorStyles)((System.Windows.Forms.AnchorStyles.Top | System.Windows.Forms.AnchorStyles.Right))); this.btnExport.Image = global::WinUI.Properties.Resources.inSyncIcon16x16; this.btnExport.ImageAlign = System.Drawing.ContentAlignment.MiddleLeft; this.btnExport.Location = new System.Drawing.Point(243, 6); this.btnExport.Name = "btnExport"; this.btnExport.Size = new System.Drawing.Size(105, 23); this.btnExport.TabIndex = 0; this.btnExport.Text = "E&xport"; this.btnExport.TextImageRelation = System.Windows.Forms.TextImageRelation.ImageBeforeText; this.btnExport.UseVisualStyleBackColor = false; this.btnExport.Click += new System.EventHandler(this.btnExport_Click); // // ctlOrders2 // this.AutoScaleDimensions = new System.Drawing.SizeF(6F, 13F); this.AutoScaleMode = System.Windows.Forms.AutoScaleMode.Font; this.Controls.Add(this.panMaster); this.Name = "ctlOrders2"; this.Size = new System.Drawing.Size(466, 412); this.Load += new System.EventHandler(this.ctlOrders2_Load); this.Leave += new System.EventHandler(this.ctlOrders2_Leave); this.Enter += new System.EventHandler(this.ctlOrders2_Enter); this.contextMenuStrip1.ResumeLayout(false); this.panMaster.ResumeLayout(false); this.panWorking.ResumeLayout(false); this.panWorking.PerformLayout(); this.panCompleted.ResumeLayout(false); this.panCompleted.PerformLayout(); this.ResumeLayout(false);
}
#endregion
private System.Windows.Forms.ImageList imgIcons; private System.Windows.Forms.ContextMenuStrip contextMenuStrip1; private System.Windows.Forms.ToolStripMenuItem cancelOrderToolStripMenuItem; private Nevron.UI.WinForm.Controls.NUIPanel panMaster; private Nevron.UI.WinForm.Controls.NUIPanel panWorking; private Nevron.UI.WinForm.Controls.NButton btnChooseWorkingColumns; private Nevron.UI.WinForm.Controls.NTreeList ntlWorkingOrders; private System.Windows.Forms.Label label2; private Nevron.UI.WinForm.Controls.NButton btnCancelAll; private Nevron.UI.WinForm.Controls.NSplitter orderSplitter; private Nevron.UI.WinForm.Controls.NUIPanel panCompleted; private System.Windows.Forms.Label label1; private Nevron.UI.WinForm.Controls.NTreeList ntlCompletedOrders; private Nevron.UI.WinForm.Controls.NButton btnChooseCompletedColumns; private Nevron.UI.WinForm.Controls.NButton btnExport; } }
|