コード例 #1
0
 /// <summary>
 /// Clean up any resources being used.
 /// </summary>
 /// <param name="disposing">true if managed resources should be disposed; otherwise, false.</param>
 protected override void Dispose(bool disposing)
 {
     if (disposing && (components != null))
     {
         components.Dispose();
     }
     if (this.ttf != null)
     {
         this.ttf.Dispose();
         this.ttf = null;
     }
     base.Dispose(disposing);
 }
コード例 #2
0
ファイル: NodeTextView.cs プロジェクト: Podracer/DAE-notepad
        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>();
        }
コード例 #3
0
        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>();
        }
コード例 #4
0
ファイル: NodeTextView.cs プロジェクト: Podracer/DAE-notepad
 /// <summary> 
 /// Clean up any resources being used.
 /// </summary>
 /// <param name="disposing">true if managed resources should be disposed; otherwise, false.</param>
 protected override void Dispose(bool disposing)
 {
     if (disposing && (components != null)) {
         components.Dispose();
     }
     if (this.ttf != null) {
         this.ttf.Dispose();
         this.ttf = null;
     }
     base.Dispose(disposing);
 }