Commit 111eac8c authored by JoyJ's avatar JoyJ

remove original autocomplete tooltip

parent 50af5ea4
...@@ -81,8 +81,9 @@ void InitForm() ...@@ -81,8 +81,9 @@ void InitForm()
Font ft = new Font(this.fctb.Font.Name, this.fctb.Font.Size / 1.2f, FontStyle.Regular); Font ft = new Font(this.fctb.Font.Name, this.fctb.Font.Size / 1.2f, FontStyle.Regular);
this.popupMenu = new FastColoredTextBoxNS.AutocompleteMenu(this.fctb) this.popupMenu = new FastColoredTextBoxNS.AutocompleteMenu(this.fctb)
{ {
MinFragmentLength = 2 MinFragmentLength = 2,
}; };
this.popupMenu.ToolTip.Popup += this.ToolTip_Popup;
this.popupMenu.Items.Font = ft; this.popupMenu.Items.Font = ft;
this.popupMenu.AutoSize = true; this.popupMenu.AutoSize = true;
this.popupMenu.MinimumSize = new System.Drawing.Size(300, 0); this.popupMenu.MinimumSize = new System.Drawing.Size(300, 0);
...@@ -96,6 +97,11 @@ void InitForm() ...@@ -96,6 +97,11 @@ void InitForm()
this.title = this.Text; this.title = this.Text;
} }
private void ToolTip_Popup(object sender, PopupEventArgs e)
{
e.Cancel = true;
}
private void PopupMenu_VisibleChanged(object sender, EventArgs e) private void PopupMenu_VisibleChanged(object sender, EventArgs e)
{ {
this.AdjustPopupMenuSize(); this.AdjustPopupMenuSize();
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment