internal Column(ColumnInformation in_ci, ResizeBarCapture in_resizeBar, ArrayList in_columnsRef) : base() { pressed = false; ci = in_ci; resizeBar = in_resizeBar; columnsRef = in_columnsRef; Text = ci.Text; SetStyle(ControlStyles.Selectable, false); }
internal Column([NotNull] ColumnInformation in_ci, [NotNull] ResizeBarCapture in_resizeBar, [NotNull] List <Column> in_columnsRef) : base() { pressed = false; ColumnInformation = in_ci; resizeBar = in_resizeBar; columnsRef = in_columnsRef; Text = ColumnInformation.Text; SetStyle(ControlStyles.Selectable, false); }
internal TreeListView(ITreeOwner in_treeOwner) { treeOwner = in_treeOwner; hoverPopup = new PlacedToolTip(); hoverPopup.Parent = FindForm(); treeListBox = new ListBox(); treeListBox.Parent = this; treeListBox.BorderStyle = System.Windows.Forms.BorderStyle.None; treeListBox.DrawMode = System.Windows.Forms.DrawMode.OwnerDrawFixed; treeListBox.IntegralHeight = false; treeListBox.Name = "treeListBox"; treeListBox.KeyDown += new System.Windows.Forms.KeyEventHandler(this.treeListBox_KeyDown); treeListBox.MouseDown += new System.Windows.Forms.MouseEventHandler(this.treeListBox_MouseDown); treeListBox.MouseMove += new System.Windows.Forms.MouseEventHandler(this.treeListBox_MouseMove); treeListBox.DoubleClick += new System.EventHandler(this.treeListBox_DoubleClick); treeListBox.DrawItem += new System.Windows.Forms.DrawItemEventHandler(this.treeListBox_DrawItem); treeListBox.SelectedIndexChanged += new System.EventHandler(this.treeListBox_SelectedIndexChanged); columns = new ArrayList(); // must be created before calling `AddColumn` resizeBar = new ResizeBarCapture(columns); resizeBar.Visible = false; resizeBar.Parent = this; leftEdge = 0; OnResize(null); // log = new StreamWriter("test.log"); // Create a blank context menu. We'll fill it in when the user right clicks ContextMenu contextMenu = new ContextMenu(); ContextMenu = contextMenu; }
internal TreeListView(ITreeOwner in_treeOwner) { treeOwner = in_treeOwner; hoverPopup = new PlacedToolTip(); hoverPopup.Parent = FindForm(); treeListBox = new ListBox(); treeListBox.Parent = this; treeListBox.BorderStyle = System.Windows.Forms.BorderStyle.None; treeListBox.DrawMode = System.Windows.Forms.DrawMode.OwnerDrawFixed; treeListBox.IntegralHeight = false; treeListBox.Name = "treeListBox"; treeListBox.KeyDown += new System.Windows.Forms.KeyEventHandler(this.treeListBox_KeyDown); treeListBox.MouseDown += new System.Windows.Forms.MouseEventHandler(this.treeListBox_MouseDown); treeListBox.MouseMove += new System.Windows.Forms.MouseEventHandler(this.treeListBox_MouseMove); treeListBox.DoubleClick += new System.EventHandler(this.treeListBox_DoubleClick); treeListBox.DrawItem += new System.Windows.Forms.DrawItemEventHandler(this.treeListBox_DrawItem); treeListBox.SelectedIndexChanged += new System.EventHandler(this.treeListBox_SelectedIndexChanged); columns = new ArrayList(); // must be created before calling `AddColumn` resizeBar = new ResizeBarCapture(columns); resizeBar.Visible = false; resizeBar.Parent = this; leftEdge = 0; OnResize(null); // Create a blank context menu. We'll fill it in when the user right clicks ContextMenu contextMenu = new ContextMenu(); ContextMenu = contextMenu; }