RichTextBox pseudo caret when it doesn't have focus

This commit is contained in:
Rich
2011-02-09 21:52:56 +00:00
parent c0a822d4f7
commit 41c8a90bdf
6 changed files with 113 additions and 5 deletions

View File

@@ -36,6 +36,7 @@ namespace Volian.Controls.Library
this.bottomDocDockSite = new DevComponents.DotNetBar.DockSite();
this.fillDocDockSite = new DevComponents.DotNetBar.DockSite();
this._MyBar = new DevComponents.DotNetBar.Bar();
this._PnlCaret = new System.Windows.Forms.Panel();
this.leftDocDockSite = new DevComponents.DotNetBar.DockSite();
this.rightDocDockSite = new DevComponents.DotNetBar.DockSite();
this.bottomBarDockSite = new DevComponents.DotNetBar.DockSite();
@@ -44,8 +45,10 @@ namespace Volian.Controls.Library
this.topBarDockSite = new DevComponents.DotNetBar.DockSite();
this.topDocDockSite = new DevComponents.DotNetBar.DockSite();
this.superTooltip1 = new DevComponents.DotNetBar.SuperTooltip();
this.tmrCaret = new System.Windows.Forms.Timer(this.components);
this.fillDocDockSite.SuspendLayout();
((System.ComponentModel.ISupportInitialize)(this._MyBar)).BeginInit();
this._MyBar.SuspendLayout();
this.SuspendLayout();
//
// dotNetBarManager1
@@ -60,7 +63,6 @@ namespace Volian.Controls.Library
this.dotNetBarManager1.AutoDispatchShortcuts.Add(DevComponents.DotNetBar.eShortcut.Del);
this.dotNetBarManager1.AutoDispatchShortcuts.Add(DevComponents.DotNetBar.eShortcut.Ins);
this.dotNetBarManager1.BottomDockSite = this.bottomDocDockSite;
this.dotNetBarManager1.DefinitionName = "";
this.dotNetBarManager1.EnableFullSizeDock = false;
this.dotNetBarManager1.FillDockSite = this.fillDocDockSite;
this.dotNetBarManager1.LeftDockSite = this.leftDocDockSite;
@@ -114,7 +116,9 @@ namespace Volian.Controls.Library
this._MyBar.CanHide = true;
this._MyBar.CanUndock = false;
this._MyBar.CloseSingleTab = true;
this._MyBar.Controls.Add(this._PnlCaret);
this._MyBar.DockTabAlignment = DevComponents.DotNetBar.eTabStripAlignment.Top;
this._MyBar.Font = new System.Drawing.Font("Microsoft Sans Serif", 8.25F, System.Drawing.FontStyle.Regular, System.Drawing.GraphicsUnit.Point, ((byte)(0)));
this._MyBar.LayoutType = DevComponents.DotNetBar.eLayoutType.DockContainer;
this._MyBar.Location = new System.Drawing.Point(0, 0);
this._MyBar.Name = "_MyBar";
@@ -125,6 +129,16 @@ namespace Volian.Controls.Library
this._MyBar.TabNavigation = true;
this._MyBar.TabStop = false;
//
// _PnlCaret
//
this._PnlCaret.BackColor = System.Drawing.Color.Red;
this._PnlCaret.Location = new System.Drawing.Point(5, 5);
this._PnlCaret.Margin = new System.Windows.Forms.Padding(0);
this._PnlCaret.Name = "_PnlCaret";
this._PnlCaret.Size = new System.Drawing.Size(142, 16);
this._PnlCaret.TabIndex = 1;
this._PnlCaret.Visible = false;
//
// leftDocDockSite
//
this.leftDocDockSite.AccessibleRole = System.Windows.Forms.AccessibleRole.Window;
@@ -202,6 +216,11 @@ namespace Volian.Controls.Library
//
this.superTooltip1.LicenseKey = "F962CEC7-CD8F-4911-A9E9-CAB39962FC1F";
//
// tmrCaret
//
this.tmrCaret.Interval = 500;
this.tmrCaret.Tick += new System.EventHandler(this.tmrCaret_Tick);
//
// DisplayTabControl
//
this.AutoScaleDimensions = new System.Drawing.SizeF(6F, 13F);
@@ -219,6 +238,7 @@ namespace Volian.Controls.Library
this.Size = new System.Drawing.Size(673, 383);
this.fillDocDockSite.ResumeLayout(false);
((System.ComponentModel.ISupportInitialize)(this._MyBar)).EndInit();
this._MyBar.ResumeLayout(false);
this.ResumeLayout(false);
}
@@ -240,5 +260,7 @@ namespace Volian.Controls.Library
//private DevComponents.DotNetBar.DockContainerItem dockContainerItem2;
//private DevComponents.DotNetBar.DockContainerItem dockContainerItem3;
private DevComponents.DotNetBar.SuperTooltip superTooltip1;
private System.Windows.Forms.Panel _PnlCaret;
private System.Windows.Forms.Timer tmrCaret;
}
}