/////////////////////////////////////////////// public EngineListView() { // We use double buffering to reduce drawing flicker SetStyle(ControlStyles.OptimizedDoubleBuffer | ControlStyles.AllPaintingInWmPaint | ControlStyles.UserPaint, true); // We need to repaint entire control whenever resized SetStyle(ControlStyles.ResizeRedraw, true); // Yes, we want to be drawn double buffered by default DoubleBuffered = true; SetStyle(ControlStyles.Selectable, true); TabStop = true; mode = new DefaultListMode(this, 16); scrollBarVertical = new EngineScrollBar(); scrollBarVertical.TabIndex = 1; scrollBarVertical.Scroll += ScrollBarVertical_Scroll; scrollBarVertical.TabStop = false; Controls.Add(scrollBarVertical); scrollBarHorizontal = new EngineScrollBar(); scrollBarHorizontal.TabIndex = 2; scrollBarHorizontal.Orientation = Orientation.Horizontal; scrollBarHorizontal.Scroll += ScrollBarHorizontal_Scroll; scrollBarHorizontal.TabStop = false; Controls.Add(scrollBarHorizontal); //timer10ms = new Timer(); //this.timer10ms.Interval = 10; //this.timer10ms.Tick += new System.EventHandler( this.timer10ms_Tick ); //timer10ms.Start(); }
private void InitializeComponent() { this.components = new System.ComponentModel.Container(); this.kryptonSplitContainer = new ComponentFactory.Krypton.Toolkit.KryptonSplitContainer(); this.kryptonSplitContainerSub1 = new ComponentFactory.Krypton.Toolkit.KryptonSplitContainer(); this.engineScrollBarVertical = new NeoAxis.Editor.EngineScrollBar(); this.kryptonSplitContainerSub2 = new ComponentFactory.Krypton.Toolkit.KryptonSplitContainer(); this.engineScrollBarHorizontal = new NeoAxis.Editor.EngineScrollBar(); this.timer1 = new System.Windows.Forms.Timer(this.components); ((System.ComponentModel.ISupportInitialize)(this.kryptonSplitContainer)).BeginInit(); ((System.ComponentModel.ISupportInitialize)(this.kryptonSplitContainer.Panel1)).BeginInit(); this.kryptonSplitContainer.Panel1.SuspendLayout(); ((System.ComponentModel.ISupportInitialize)(this.kryptonSplitContainer.Panel2)).BeginInit(); this.kryptonSplitContainer.Panel2.SuspendLayout(); this.kryptonSplitContainer.SuspendLayout(); ((System.ComponentModel.ISupportInitialize)(this.kryptonSplitContainerSub1)).BeginInit(); ((System.ComponentModel.ISupportInitialize)(this.kryptonSplitContainerSub1.Panel1)).BeginInit(); ((System.ComponentModel.ISupportInitialize)(this.kryptonSplitContainerSub1.Panel2)).BeginInit(); this.kryptonSplitContainerSub1.Panel2.SuspendLayout(); this.kryptonSplitContainerSub1.SuspendLayout(); ((System.ComponentModel.ISupportInitialize)(this.kryptonSplitContainerSub2)).BeginInit(); ((System.ComponentModel.ISupportInitialize)(this.kryptonSplitContainerSub2.Panel1)).BeginInit(); this.kryptonSplitContainerSub2.Panel1.SuspendLayout(); ((System.ComponentModel.ISupportInitialize)(this.kryptonSplitContainerSub2.Panel2)).BeginInit(); this.kryptonSplitContainerSub2.SuspendLayout(); this.SuspendLayout(); // // kryptonSplitContainer // this.kryptonSplitContainer.Cursor = System.Windows.Forms.Cursors.Default; this.kryptonSplitContainer.Dock = System.Windows.Forms.DockStyle.Fill; this.kryptonSplitContainer.FixedPanel = System.Windows.Forms.FixedPanel.Panel2; this.kryptonSplitContainer.IsSplitterFixed = true; this.kryptonSplitContainer.Location = new System.Drawing.Point(0, 0); this.kryptonSplitContainer.Name = "kryptonSplitContainer"; this.kryptonSplitContainer.Orientation = System.Windows.Forms.Orientation.Horizontal; // // kryptonSplitContainer.Panel1 // this.kryptonSplitContainer.Panel1.Controls.Add(this.kryptonSplitContainerSub1); // // kryptonSplitContainer.Panel2 // this.kryptonSplitContainer.Panel2.Controls.Add(this.kryptonSplitContainerSub2); this.kryptonSplitContainer.Panel2MinSize = 16; this.kryptonSplitContainer.Size = new System.Drawing.Size(569, 314); this.kryptonSplitContainer.SplitterDistance = 295; this.kryptonSplitContainer.SplitterPercent = 0.93949044585987262D; this.kryptonSplitContainer.SplitterWidth = 0; this.kryptonSplitContainer.TabIndex = 3; // // kryptonSplitContainerSub1 // this.kryptonSplitContainerSub1.Cursor = System.Windows.Forms.Cursors.Default; this.kryptonSplitContainerSub1.Dock = System.Windows.Forms.DockStyle.Fill; this.kryptonSplitContainerSub1.FixedPanel = System.Windows.Forms.FixedPanel.Panel2; this.kryptonSplitContainerSub1.IsSplitterFixed = true; this.kryptonSplitContainerSub1.Location = new System.Drawing.Point(0, 0); this.kryptonSplitContainerSub1.Name = "kryptonSplitContainerSub1"; // // kryptonSplitContainerSub1.Panel2 // this.kryptonSplitContainerSub1.Panel2.Controls.Add(this.engineScrollBarVertical); this.kryptonSplitContainerSub1.Panel2MinSize = 16; this.kryptonSplitContainerSub1.Size = new System.Drawing.Size(569, 295); this.kryptonSplitContainerSub1.SplitterDistance = 549; this.kryptonSplitContainerSub1.SplitterPercent = 0.96485061511423553D; this.kryptonSplitContainerSub1.SplitterWidth = 1; this.kryptonSplitContainerSub1.TabIndex = 0; // // engineScrollBarVertical // this.engineScrollBarVertical.Dock = System.Windows.Forms.DockStyle.Fill; this.engineScrollBarVertical.Location = new System.Drawing.Point(0, 0); this.engineScrollBarVertical.Name = "engineScrollBarVertical"; this.engineScrollBarVertical.Size = new System.Drawing.Size(19, 295); this.engineScrollBarVertical.TabIndex = 0; // // kryptonSplitContainerSub2 // this.kryptonSplitContainerSub2.Dock = System.Windows.Forms.DockStyle.Fill; this.kryptonSplitContainerSub2.FixedPanel = System.Windows.Forms.FixedPanel.Panel2; this.kryptonSplitContainerSub2.IsSplitterFixed = true; this.kryptonSplitContainerSub2.Location = new System.Drawing.Point(0, 0); this.kryptonSplitContainerSub2.Name = "kryptonSplitContainerSub2"; // // kryptonSplitContainerSub2.Panel1 // this.kryptonSplitContainerSub2.Panel1.Controls.Add(this.engineScrollBarHorizontal); this.kryptonSplitContainerSub2.Panel2MinSize = 16; this.kryptonSplitContainerSub2.Size = new System.Drawing.Size(569, 19); this.kryptonSplitContainerSub2.SplitterDistance = 549; this.kryptonSplitContainerSub2.SplitterPercent = 0.96485061511423553D; this.kryptonSplitContainerSub2.SplitterWidth = 1; this.kryptonSplitContainerSub2.TabIndex = 0; // // engineScrollBarHorizontal // this.engineScrollBarHorizontal.Dock = System.Windows.Forms.DockStyle.Fill; this.engineScrollBarHorizontal.Location = new System.Drawing.Point(0, 0); this.engineScrollBarHorizontal.MinimumSize = new System.Drawing.Size(102, 0); this.engineScrollBarHorizontal.Name = "engineScrollBarHorizontal"; this.engineScrollBarHorizontal.Orientation = System.Windows.Forms.Orientation.Horizontal; this.engineScrollBarHorizontal.Size = new System.Drawing.Size(549, 19); this.engineScrollBarHorizontal.TabIndex = 1; // // timer1 // this.timer1.Interval = 25; this.timer1.Tick += new System.EventHandler(this.timer1_Tick); // // TextEditorControl // this.Controls.Add(this.kryptonSplitContainer); this.Name = "TextEditorControl"; this.Size = new System.Drawing.Size(569, 314); this.Load += new System.EventHandler(this.TextEditorControl_Load); ((System.ComponentModel.ISupportInitialize)(this.kryptonSplitContainer.Panel1)).EndInit(); this.kryptonSplitContainer.Panel1.ResumeLayout(false); ((System.ComponentModel.ISupportInitialize)(this.kryptonSplitContainer.Panel2)).EndInit(); this.kryptonSplitContainer.Panel2.ResumeLayout(false); ((System.ComponentModel.ISupportInitialize)(this.kryptonSplitContainer)).EndInit(); this.kryptonSplitContainer.ResumeLayout(false); ((System.ComponentModel.ISupportInitialize)(this.kryptonSplitContainerSub1.Panel1)).EndInit(); ((System.ComponentModel.ISupportInitialize)(this.kryptonSplitContainerSub1.Panel2)).EndInit(); this.kryptonSplitContainerSub1.Panel2.ResumeLayout(false); ((System.ComponentModel.ISupportInitialize)(this.kryptonSplitContainerSub1)).EndInit(); this.kryptonSplitContainerSub1.ResumeLayout(false); ((System.ComponentModel.ISupportInitialize)(this.kryptonSplitContainerSub2.Panel1)).EndInit(); this.kryptonSplitContainerSub2.Panel1.ResumeLayout(false); ((System.ComponentModel.ISupportInitialize)(this.kryptonSplitContainerSub2.Panel2)).EndInit(); ((System.ComponentModel.ISupportInitialize)(this.kryptonSplitContainerSub2)).EndInit(); this.kryptonSplitContainerSub2.ResumeLayout(false); this.ResumeLayout(false); }