protected override void OnDeactivated(Control control) { base.OnDeactivated(control); if (Completion.HostBlock == this) { Completion.HideCompletionList(); } }
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); }