Inheritance: VisualControlBase, IContainedInputControl
        /// <summary>
        /// Initialize a new instance of the KryptonTreeViewActionList class.
        /// </summary>
        /// <param name="owner">Designer that owns this action list instance.</param>
        public KryptonTreeViewActionList(KryptonTreeViewDesigner owner)
            : base(owner.Component)
        {
            // Remember the tree view instance
            _treeView = owner.Component as KryptonTreeView;

            // Cache service used to notify when a property has changed
            _service = (IComponentChangeService)GetService(typeof(IComponentChangeService));
        }
 private void InitializeComponent()
 {
     this.components             = new System.ComponentModel.Container();
     this.kryptonSplitContainer1 = new ComponentFactory.Krypton.Toolkit.KryptonSplitContainer();
     this.ktvExplorer            = new ComponentFactory.Krypton.Toolkit.KryptonTreeView();
     this.ilExplorer             = new System.Windows.Forms.ImageList(this.components);
     this.colName         = ((System.Windows.Forms.ColumnHeader)(new System.Windows.Forms.ColumnHeader()));
     this.colType         = ((System.Windows.Forms.ColumnHeader)(new System.Windows.Forms.ColumnHeader()));
     this.colLastModified = ((System.Windows.Forms.ColumnHeader)(new System.Windows.Forms.ColumnHeader()));
     ((System.ComponentModel.ISupportInitialize)(this.kryptonSplitContainer1)).BeginInit();
     ((System.ComponentModel.ISupportInitialize)(this.kryptonSplitContainer1.Panel1)).BeginInit();
     this.kryptonSplitContainer1.Panel1.SuspendLayout();
     ((System.ComponentModel.ISupportInitialize)(this.kryptonSplitContainer1.Panel2)).BeginInit();
     this.kryptonSplitContainer1.Panel2.SuspendLayout();
     this.kryptonSplitContainer1.SuspendLayout();
     this.SuspendLayout();
     //
     // kryptonSplitContainer1
     //
     this.kryptonSplitContainer1.Cursor   = System.Windows.Forms.Cursors.Default;
     this.kryptonSplitContainer1.Dock     = System.Windows.Forms.DockStyle.Fill;
     this.kryptonSplitContainer1.Location = new System.Drawing.Point(0, 0);
     this.kryptonSplitContainer1.Name     = "kryptonSplitContainer1";
     //
     // kryptonSplitContainer1.Panel1
     //
     this.kryptonSplitContainer1.Panel1.Controls.Add(this.ktvExplorer);
     //
     // kryptonSplitContainer1.Panel2
     //
     this.kryptonSplitContainer1.Size             = new System.Drawing.Size(905, 504);
     this.kryptonSplitContainer1.SplitterDistance = 301;
     this.kryptonSplitContainer1.TabIndex         = 0;
     //
     // ktvExplorer
     //
     this.ktvExplorer.Dock            = System.Windows.Forms.DockStyle.Fill;
     this.ktvExplorer.Location        = new System.Drawing.Point(0, 0);
     this.ktvExplorer.Name            = "ktvExplorer";
     this.ktvExplorer.Size            = new System.Drawing.Size(301, 504);
     this.ktvExplorer.StateImageList  = this.ilExplorer;
     this.ktvExplorer.TabIndex        = 0;
     this.ktvExplorer.NodeMouseClick += new System.Windows.Forms.TreeNodeMouseClickEventHandler(this.ktvExplorer_NodeMouseClick);
     this.ktvExplorer.MouseClick     += new System.Windows.Forms.MouseEventHandler(this.ktvExplorer_MouseClick);
     //
     // ilExplorer
     //
     this.ilExplorer.ColorDepth       = System.Windows.Forms.ColorDepth.Depth8Bit;
     this.ilExplorer.ImageSize        = new System.Drawing.Size(16, 16);
     this.ilExplorer.TransparentColor = System.Drawing.Color.Transparent;
     //
     // colName
     //
     this.colName.Text  = "Name";
     this.colName.Width = 225;
     //
     // colType
     //
     this.colType.Text  = "Type";
     this.colType.Width = 181;
     //
     // colLastModified
     //
     this.colLastModified.Text  = "Last Modified";
     this.colLastModified.Width = 212;
     //
     // KryptonExplorer
     //
     this.BackColor = System.Drawing.Color.Transparent;
     this.Controls.Add(this.kryptonSplitContainer1);
     this.Font = new System.Drawing.Font("Segoe UI", 12F, System.Drawing.FontStyle.Regular, System.Drawing.GraphicsUnit.Point, ((byte)(0)));
     this.Name = "KryptonExplorer";
     this.Size = new System.Drawing.Size(905, 504);
     ((System.ComponentModel.ISupportInitialize)(this.kryptonSplitContainer1.Panel1)).EndInit();
     this.kryptonSplitContainer1.Panel1.ResumeLayout(false);
     ((System.ComponentModel.ISupportInitialize)(this.kryptonSplitContainer1.Panel2)).EndInit();
     this.kryptonSplitContainer1.Panel2.ResumeLayout(false);
     ((System.ComponentModel.ISupportInitialize)(this.kryptonSplitContainer1)).EndInit();
     this.kryptonSplitContainer1.ResumeLayout(false);
     this.ResumeLayout(false);
 }
 private void InitializeComponent()
 {
     this.components             = new System.ComponentModel.Container();
     this.kryptonSplitContainer1 = new ComponentFactory.Krypton.Toolkit.KryptonSplitContainer();
     this.ktvExplorer            = new ComponentFactory.Krypton.Toolkit.KryptonTreeView();
     this.ilExplorer             = new System.Windows.Forms.ImageList(this.components);
     this.klvFileList            = new ExtendedControls.ExtendedToolkit.Controls.KryptonControls.KryptonListView();
     this.colName         = ((System.Windows.Forms.ColumnHeader)(new System.Windows.Forms.ColumnHeader()));
     this.colType         = ((System.Windows.Forms.ColumnHeader)(new System.Windows.Forms.ColumnHeader()));
     this.colLastModified = ((System.Windows.Forms.ColumnHeader)(new System.Windows.Forms.ColumnHeader()));
     ((System.ComponentModel.ISupportInitialize)(this.kryptonSplitContainer1)).BeginInit();
     ((System.ComponentModel.ISupportInitialize)(this.kryptonSplitContainer1.Panel1)).BeginInit();
     this.kryptonSplitContainer1.Panel1.SuspendLayout();
     ((System.ComponentModel.ISupportInitialize)(this.kryptonSplitContainer1.Panel2)).BeginInit();
     this.kryptonSplitContainer1.Panel2.SuspendLayout();
     this.kryptonSplitContainer1.SuspendLayout();
     this.SuspendLayout();
     //
     // kryptonSplitContainer1
     //
     this.kryptonSplitContainer1.Cursor   = System.Windows.Forms.Cursors.Default;
     this.kryptonSplitContainer1.Dock     = System.Windows.Forms.DockStyle.Fill;
     this.kryptonSplitContainer1.Location = new System.Drawing.Point(0, 0);
     this.kryptonSplitContainer1.Name     = "kryptonSplitContainer1";
     //
     // kryptonSplitContainer1.Panel1
     //
     this.kryptonSplitContainer1.Panel1.Controls.Add(this.ktvExplorer);
     //
     // kryptonSplitContainer1.Panel2
     //
     this.kryptonSplitContainer1.Panel2.Controls.Add(this.klvFileList);
     this.kryptonSplitContainer1.Size             = new System.Drawing.Size(905, 504);
     this.kryptonSplitContainer1.SplitterDistance = 301;
     this.kryptonSplitContainer1.TabIndex         = 0;
     //
     // ktvExplorer
     //
     this.ktvExplorer.Dock            = System.Windows.Forms.DockStyle.Fill;
     this.ktvExplorer.Location        = new System.Drawing.Point(0, 0);
     this.ktvExplorer.Name            = "ktvExplorer";
     this.ktvExplorer.Size            = new System.Drawing.Size(301, 504);
     this.ktvExplorer.StateImageList  = this.ilExplorer;
     this.ktvExplorer.TabIndex        = 0;
     this.ktvExplorer.NodeMouseClick += new System.Windows.Forms.TreeNodeMouseClickEventHandler(this.ktvExplorer_NodeMouseClick);
     this.ktvExplorer.MouseClick     += new System.Windows.Forms.MouseEventHandler(this.ktvExplorer_MouseClick);
     //
     // ilExplorer
     //
     this.ilExplorer.ColorDepth       = System.Windows.Forms.ColorDepth.Depth8Bit;
     this.ilExplorer.ImageSize        = new System.Drawing.Size(16, 16);
     this.ilExplorer.TransparentColor = System.Drawing.Color.Transparent;
     //
     // klvFileList
     //
     this.klvFileList.AlternateRowColour        = System.Drawing.Color.FromArgb(((int)(((byte)(187)))), ((int)(((byte)(206)))), ((int)(((byte)(230)))));
     this.klvFileList.AlternateRowColourEnabled = true;
     this.klvFileList.AutoSizeLastColumn        = true;
     this.klvFileList.Columns.AddRange(new System.Windows.Forms.ColumnHeader[] {
         this.colName,
         this.colType,
         this.colLastModified
     });
     this.klvFileList.Dock                            = System.Windows.Forms.DockStyle.Fill;
     this.klvFileList.EnableDragDrop                  = false;
     this.klvFileList.EnableHeaderGlow                = false;
     this.klvFileList.EnableHeaderHotTrack            = false;
     this.klvFileList.EnableHeaderRendering           = true;
     this.klvFileList.EnableSelectionBorder           = false;
     this.klvFileList.EnableSorting                   = true;
     this.klvFileList.EnableVistaCheckBoxes           = true;
     this.klvFileList.ForceLeftAlign                  = false;
     this.klvFileList.FullRowSelect                   = true;
     this.klvFileList.HideSelection                   = false;
     this.klvFileList.ItemHeight                      = 0;
     this.klvFileList.LineAfter                       = -1;
     this.klvFileList.LineBefore                      = -1;
     this.klvFileList.Location                        = new System.Drawing.Point(0, 0);
     this.klvFileList.Name                            = "klvFileList";
     this.klvFileList.OwnerDraw                       = true;
     this.klvFileList.PersistentColours               = false;
     this.klvFileList.SelectEntireRowOnSubItem        = true;
     this.klvFileList.Size                            = new System.Drawing.Size(599, 504);
     this.klvFileList.SmallImageList                  = this.ilExplorer;
     this.klvFileList.StateImageList                  = this.ilExplorer;
     this.klvFileList.TabIndex                        = 1;
     this.klvFileList.UseCompatibleStateImageBehavior = false;
     this.klvFileList.UseKryptonRenderer              = true;
     this.klvFileList.UseStyledColours                = false;
     this.klvFileList.View                            = System.Windows.Forms.View.Details;
     //
     // colName
     //
     this.colName.Text  = "Name";
     this.colName.Width = 225;
     //
     // colType
     //
     this.colType.Text  = "Type";
     this.colType.Width = 181;
     //
     // colLastModified
     //
     this.colLastModified.Text  = "Last Modified";
     this.colLastModified.Width = 212;
     //
     // KryptonExplorer
     //
     this.BackColor = System.Drawing.Color.Transparent;
     this.Controls.Add(this.kryptonSplitContainer1);
     this.Font = new System.Drawing.Font("Segoe UI", 12F, System.Drawing.FontStyle.Regular, System.Drawing.GraphicsUnit.Point, ((byte)(0)));
     this.Name = "KryptonExplorer";
     this.Size = new System.Drawing.Size(905, 504);
     ((System.ComponentModel.ISupportInitialize)(this.kryptonSplitContainer1.Panel1)).EndInit();
     this.kryptonSplitContainer1.Panel1.ResumeLayout(false);
     ((System.ComponentModel.ISupportInitialize)(this.kryptonSplitContainer1.Panel2)).EndInit();
     this.kryptonSplitContainer1.Panel2.ResumeLayout(false);
     ((System.ComponentModel.ISupportInitialize)(this.kryptonSplitContainer1)).EndInit();
     this.kryptonSplitContainer1.ResumeLayout(false);
     this.ResumeLayout(false);
 }
Ejemplo n.º 4
0
            public InternalTreeView(KryptonTreeView kryptonTreeView)
            {
                SetStyle(ControlStyles.ResizeRedraw, true);

                _kryptonTreeView = kryptonTreeView;

                // Create manager and view for drawing the background
                _drawPanel = new ViewDrawPanel();
                _viewManager = new ViewManager(this, _drawPanel);

                // Set required properties to act as an owner draw list box
                base.Size = Size.Empty;
                base.BorderStyle = BorderStyle.None;

                // We need to create and cache a device context compatible with the display
                _screenDC = PI.CreateCompatibleDC(IntPtr.Zero);
            }