Example #1
0
        internal FindReplace(Scintilla scintilla) : base(scintilla)
        {
            _marker = scintilla.Markers[10];
            _marker.SetSymbolInternal(MarkerSymbol.Arrows);
            _indicator       = scintilla.Indicators[16];
            _indicator.Color = Color.Purple;
            _indicator.Style = IndicatorStyle.RoundBox;

            _window           = new FindReplaceDialog();
            _window.Scintilla = scintilla;

            _incrementalSearcher           = new IncrementalSearcher();
            _incrementalSearcher.Scintilla = scintilla;
            _incrementalSearcher.Visible   = false;
            scintilla.Controls.Add(_incrementalSearcher);
        }
Example #2
0
		internal FindReplace(Scintilla scintilla) : base(scintilla) 
		{
			_marker = scintilla.Markers[10];
			_marker.SetSymbolInternal(MarkerSymbol.Arrows);
			_indicator = scintilla.Indicators[16];
			_indicator.Color = Color.Purple;
			_indicator.Style = IndicatorStyle.RoundBox;

			_window = new FindReplaceDialog();
			_window.Scintilla = scintilla;

			_incrementalSearcher = new IncrementalSearcher();
			_incrementalSearcher.Scintilla = scintilla;
			_incrementalSearcher.Visible = false;
			scintilla.Controls.Add(_incrementalSearcher);
		}
Example #3
0
        internal FindReplace(Scintilla scintilla) : base(scintilla)
        {
            // QuickSharp changes
            _marker = scintilla.Markers[10];
            _marker.SetSymbolInternal(MarkerSymbol.Background); //MarkerSymbol.Arrow);
            _marker.BackColor = Color.AliceBlue;

            _indicator       = scintilla.Indicators[16];
            _indicator.Color = Color.Silver;       //Color.Purple;
            _indicator.Style = IndicatorStyle.Box; //IndicatorStyle.RoundBox;

            _window           = new FindReplaceDialog();
            _window.Scintilla = scintilla;

            _incrementalSearcher           = new IncrementalSearcher();
            _incrementalSearcher.Scintilla = scintilla;
            _incrementalSearcher.Visible   = false;
            scintilla.Controls.Add(_incrementalSearcher);
        }
        private void browserDesign_PreviewKeyDown(object sender, PreviewKeyDownEventArgs e)
        {
            modifiedDocument = true;

            if (e.KeyData == (Keys.Control | Keys.F))
            {
                modeTabs.SelectedTab = tabEditor;
                FindReplaceDialog dlgFind = new FindReplaceDialog();
                dlgFind.Scintilla = editor;
                dlgFind.ShowDialog();
                dlgFind.Activate();
                dlgFind.Focus();
                return;
            }
        }