예제 #1
0
 private void btFindNext_Click(object sender, EventArgs e)
 {
     FindNext(tbFind.Text);
     Focus();
     if (infoTip.Visible)
     {
         infoTip.Hide();
     }
 }
예제 #2
0
        public SharedControls(GUI gui, ToolStripStatusLabel statusLabel, FastColoredTextBox docBox)
        {
            this.gui         = gui;
            this.statusLabel = statusLabel;
            this.docBox      = docBox;
            BFF     = new BetterFindForm(null);
            InfoTip = new ToolControl();

            BFF.infoTip = InfoTip;
            InfoTip.Show();
            InfoTip.Hide();
            InfoTip.tipBox.TextChanged += (object sender, TextChangedEventArgs e) => TipBox_TextChanged(sender, e);
            // InfoTip.GotFocus += (object sender, EventArgs args) => editor.Focus(); // needed?

            foreach (FastColoredTextBox tb in AllTextBoxes)
            {
                tb.ZoomChanged += (sender, e) => { HideTip(); SetGlobalFont(((FastColoredTextBox)sender).Font); };
            }
        }
예제 #3
0
 public void HideTip()
 {
     InfoTip.Hide();
 }