Exemple #1
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); };
            }
        }