public NodeTextView() { this.SetStyle(ControlStyles.ResizeRedraw, true); this.SetStyle(ControlStyles.UserPaint, true); this.SetStyle(ControlStyles.AllPaintingInWmPaint, true); this.SetStyle(ControlStyles.OptimizedDoubleBuffer, true); this.SetStyle(ControlStyles.Selectable, true); InitializeComponent(); this.SuspendLayout(); this.editor = new TextEditorOverlay(this); this.editor.MultiLine = true; this.editor.CommitEdit += new EventHandler <TextEditorEventArgs>(OnCommitEdit); this.editor.LayoutEditor += new EventHandler <TextEditorLayoutEventArgs>(OnLayoutEditor); this.ttf = new TypeToFindHandler(this, 2000); this.ttf.FindString += new TypeToFindEventHandler(FindString); this.ResumeLayout(); this.AccessibleRole = System.Windows.Forms.AccessibleRole.List; visibleTextCache = new Dictionary <TreeNode, string>(); }
public NodeTextView() { this.SetStyle(ControlStyles.ResizeRedraw,true); this.SetStyle(ControlStyles.UserPaint,true); this.SetStyle(ControlStyles.AllPaintingInWmPaint,true); this.SetStyle(ControlStyles.OptimizedDoubleBuffer, true); this.SetStyle(ControlStyles.Selectable,true); InitializeComponent(); this.SuspendLayout(); this.editor = new TextEditorOverlay(this); this.editor.MultiLine = true; this.editor.CommitEdit += new EventHandler<TextEditorEventArgs>(OnCommitEdit); this.editor.LayoutEditor += new EventHandler<TextEditorLayoutEventArgs>(OnLayoutEditor); this.ttf = new TypeToFindHandler(this, 2000); this.ttf.FindString += new TypeToFindEventHandler(FindString); this.ResumeLayout(); this.AccessibleRole=System.Windows.Forms.AccessibleRole.List; visibleTextCache = new Dictionary<TreeNode, string>(); }