internal static void MenuSearchFunction() { if (Win32.IsWindowVisible(ToolbarSearchForm.Handle)) { ToolbarSearchForm.SelectSearchField(); } else { NeedFlyingSearchForm().SelectSearchField(); } }
internal static void PluginReady() { NppListener = new NppListener(); ToolbarSearchForm = new ToolbarSearchForm(); FlyingSearchForm = null; NppListener.AssignHandle(PluginBase.nppData._nppHandle); ToolbarSearchForm.CheckToolbarVisiblity(); RecalcRepeatLastCommandMenuItem(); Win32.SendMessage(PluginBase.GetCurrentScintilla(), SciMsg.SCI_GRABFOCUS, 0, 0); }