public void ToggleSearchField() { EditorElement ee = GetCurrentEditorElement(); if (IsSearchFieldOpen) { if (ee != null) { if (ee.IsKeyboardFocusWithin) { if (ee.editor.SelectionLength > 0) { FindBox.Text = ee.editor.SelectedText; } FindBox.SelectAll(); FindBox.Focus(); return; } } IsSearchFieldOpen = false; FindReplaceGrid.IsHitTestVisible = false; if (Program.OptionsObject.UI_Animations) { FadeFindReplaceGridOut.Begin(); } else { FindReplaceGrid.Opacity = 0.0; } if (ee == null) { return; } ee.editor.Focus(); } else { IsSearchFieldOpen = true; FindReplaceGrid.IsHitTestVisible = true; if (ee == null) { return; } if (ee.editor.SelectionLength > 0) { FindBox.Text = ee.editor.SelectedText; } FindBox.SelectAll(); if (Program.OptionsObject.UI_Animations) { FadeFindReplaceGridIn.Begin(); } else { FindReplaceGrid.Opacity = 1.0; } FindBox.Focus(); } }
public FindAndReplace(MainWindow window) { CloseWindow.InputGestures.Add(new KeyGesture(Key.Escape)); CommandBindings.Add(new CommandBinding(CloseWindow, CloseCurrentWindow)); InitializeComponent(); _window = window; FindBox.Focus(); }
void Start() { instance = this; text = ""; lastText = ""; textPointer = 0; textMesh = GetComponentInChildren<TextMesh>(); press(); }
private void HexFind_Load(object sender, EventArgs e) { if (InitialLocation.X > 0 && InitialLocation.Y > 0) { Location = InitialLocation; } FindBox.Focus(); FindBox.Select(); }
private void BoxShow() { if (string.IsNullOrEmpty(ftxtSearch.Text)) { ftxtSearch.Text = codeEdit.SelectedText; } FindBox.Top = 25; FindBox.Left = this.Width - FindBox.Width; FindBox.Show(); }
public void ToggleSearchField() { EditorElement ee = GetCurrentEditorElement(); if (IsSearchFieldOpen) { if (ee != null) { if (ee.IsKeyboardFocusWithin) { if (ee.editor.SelectionLength > 0) { FindBox.Text = ee.editor.SelectedText; } FindBox.SelectAll(); FindBox.Focus(); return; } } IsSearchFieldOpen = false; FindReplaceGrid.IsHitTestVisible = false; FindReplaceGrid.Height = 0; if (ee == null) { return; } ee.editor.Focus(); } else { IsSearchFieldOpen = true; FindReplaceGrid.IsHitTestVisible = true; if (ee == null) { return; } if (ee.editor.SelectionLength > 0) { FindBox.Text = ee.editor.SelectedText; } FindBox.SelectAll(); FindReplaceGrid.Height = double.NaN; FindBox.Focus(); } }
protected override void OnGotFocus(EventArgs e) { base.OnGotFocus(e); FindBox.Focus(); }
public void OpenFindWindow() { FindBox find = new FindBox(this.FindNext); find.Show(); }
private void fClose_MouseDown(object sender, MouseEventArgs e) { FindBox.Hide(); }