示例#1
0
 protected override void OnDeactivated(Control control)
 {
     base.OnDeactivated(control);
     if (Completion.HostBlock == this)
     {
         Completion.HideCompletionList();
     }
 }
示例#2
0
 protected override void OnTextHasChanged(GuiLabs.Canvas.Controls.ITextProvider changedControl, string oldText, string newText)
 {
     if (Completion.Visible)
     {
         if (!Completion.ExistingItemsHavePrefix(this.Text))
         {
             Completion.HideCompletionList();
         }
         else
         {
             Completion.ShowCompletionList(this, this.Text);
         }
     }
     base.OnTextHasChanged(changedControl, oldText, newText);
 }