private void InitializeComponent() { this.Tree = new Aga.Controls.Tree.TreeViewAdv(); this.nameColumn = new TreeColumn(); this.valueColumn = new TreeColumn(); this.SuspendLayout(); // // nameColumn // this.nameColumn.Header = "Name"; this.nameColumn.MinColumnWidth = 10; this.nameColumn.Sortable = true; this.nameColumn.SortOrder = System.Windows.Forms.SortOrder.Ascending; this.nameColumn.TooltipText = null; this.nameColumn.Width = 300; // // valueColumn // this.valueColumn.Header = "Value"; this.valueColumn.MinColumnWidth = 10; this.valueColumn.SortOrder = System.Windows.Forms.SortOrder.None; this.valueColumn.TooltipText = null; this.valueColumn.Width = 300; // // Tree // this.Tree.Columns.Add(this.nameColumn); this.Tree.Columns.Add(this.valueColumn); this.Tree.Dock = System.Windows.Forms.DockStyle.Fill; this.Tree.DragDropMarkColor = System.Drawing.Color.Black; this.Tree.Font = new System.Drawing.Font("Arial", 9F, System.Drawing.FontStyle.Regular, System.Drawing.GraphicsUnit.Point, ((byte)(0))); this.Tree.GridLineStyle = ((Aga.Controls.Tree.GridLineStyle)((Aga.Controls.Tree.GridLineStyle.Horizontal | Aga.Controls.Tree.GridLineStyle.Vertical))); this.Tree.LineColor = System.Drawing.SystemColors.ControlDarkDark; this.Tree.LoadOnDemand = true; this.Tree.Location = new System.Drawing.Point(0, 27); this.Tree.Name = "Tree"; this.Tree.ShowNodeToolTips = true; this.Tree.Size = new System.Drawing.Size(1254, 318); this.Tree.UseColumns = true; this.Tree.DrawControl += Tree_DrawControl; // //nameControl // var nameControl = new EntryNameNodeText(); nameControl.VirtualMode = true; nameControl.ToolTipProvider = this; nameControl.ParentColumn = nameColumn; nameControl.IncrementalSearchEnabled = true; nameControl.Trimming = StringTrimming.EllipsisCharacter; Tree.NodeControls.Add(nameControl); // //valueControl // var valueControl = new EntryValueNodeText(); valueControl.VirtualMode = true; valueControl.ParentColumn = valueColumn; valueControl.Trimming = StringTrimming.EllipsisCharacter; Tree.NodeControls.Add(valueControl); // //pathDisplay // pathDisplay = new ObjectPathDisplay(); pathDisplay.Dock = DockStyle.Top; pathDisplay.Height = 16; pathDisplay.RootSymbol = "!"; pathDisplay.PathClicked += pathDisplay_PathClicked; // // SectionEntryGUI // this.Controls.Add(this.Tree); this.Controls.Add(pathDisplay); this.Name = "SectionEntryGUI"; this.Size = new System.Drawing.Size(1008, 398); this.ResumeLayout(true); }
private void InitializeComponent() { this.Tree = new Aga.Controls.Tree.TreeViewAdv(); this.nameColumn = new TreeColumn(); this.valueColumn = new TreeColumn(); this.SuspendLayout(); // // nameColumn // this.nameColumn.Header = "Name"; this.nameColumn.MinColumnWidth = 10; this.nameColumn.Sortable = true; this.nameColumn.SortOrder = System.Windows.Forms.SortOrder.Ascending; this.nameColumn.TooltipText = null; this.nameColumn.Width = 300; // // valueColumn // this.valueColumn.Header = "Value"; this.valueColumn.MinColumnWidth = 10; this.valueColumn.SortOrder = System.Windows.Forms.SortOrder.None; this.valueColumn.TooltipText = null; this.valueColumn.Width = 300; // // Tree // this.Tree.Columns.Add(this.nameColumn); this.Tree.Columns.Add(this.valueColumn); this.Tree.Dock = System.Windows.Forms.DockStyle.Fill; this.Tree.DragDropMarkColor = System.Drawing.Color.Black; this.Tree.Font = new System.Drawing.Font("Arial", 9F, System.Drawing.FontStyle.Regular, System.Drawing.GraphicsUnit.Point, ((byte)(0))); this.Tree.GridLineStyle = ((Aga.Controls.Tree.GridLineStyle)((Aga.Controls.Tree.GridLineStyle.Horizontal | Aga.Controls.Tree.GridLineStyle.Vertical))); this.Tree.LineColor = System.Drawing.SystemColors.ControlDarkDark; this.Tree.LoadOnDemand = true; this.Tree.Location = new System.Drawing.Point(0, 27); this.Tree.Name = "Tree"; this.Tree.ShowNodeToolTips = true; this.Tree.Size = new System.Drawing.Size(1254, 318); this.Tree.UseColumns = true; this.Tree.DrawControl += Tree_DrawControl; // //nameControl // var nameControl = new EntryNameNodeText(); nameControl.VirtualMode = true; nameControl.ToolTipProvider = this; nameControl.ParentColumn = nameColumn; nameControl.IncrementalSearchEnabled = true; nameControl.Trimming = StringTrimming.EllipsisCharacter; Tree.NodeControls.Add(nameControl); // //valueControl // var valueControl = new EntryValueNodeText(); valueControl.VirtualMode = true; valueControl.ParentColumn = valueColumn; valueControl.Trimming = StringTrimming.EllipsisCharacter; Tree.NodeControls.Add(valueControl); // //pathDisplay // pathDisplay = new ObjectPathDisplay(); pathDisplay.Dock = DockStyle.Top; pathDisplay.Height = 16; pathDisplay.RootSymbol = "!"; pathDisplay.PathClicked += pathDisplay_PathClicked; // // SectionEntryGUI // this.Controls.Add(this.Tree); this.Controls.Add(pathDisplay); this.Name = "SectionEntryGUI"; this.Size = new System.Drawing.Size(1008, 398); this.ResumeLayout(true); }