Beispiel #1
0
 public void HideCompletions()
 {
     if (this.FCompletionForm != null)
     {
         this.FCompletionForm.Dispose();
         this.FCompletionForm = null;
     }
 }
Beispiel #2
0
        public void ShowCompletion()
        {
            //this.Capture = true;
            this.HideCompletions();
            this.FCompletionForm = new CompletionForm();
            this.FCompletionForm.FormDisposing += CompletionFormDisposing;
            this.FCompletionForm.Scintilla      = this;

            int word_start_pos = Utility.TextHelper.KeywordStartPosition(this.Text, this.CurrentPosition - 1) + 1;
            int x = this.PointXFromPosition(word_start_pos);
            int y = this.PointYFromPosition(word_start_pos);

            this.FCompletionForm.Show();

            Point p = this.PointToScreen(new Point(x, y));

            this.FCompletionForm.TopLevel = true;
            this.FCompletionForm.TopMost  = true;
            this.FCompletionForm.Top      = p.Y + (int)(this.Font.Height * 1.2);
            this.FCompletionForm.Left     = p.X;
            this.Focus();
            this.SetFilter(0);
        }
Beispiel #3
0
 public void CompletionFormDisposing(object sender, EventArgs e)
 {
     this.FCompletionForm.FormDisposing -= CompletionFormDisposing;
     this.FCompletionForm = null;
 }