Example #1
0
 internal static void MenuSearchFunction()
 {
     if (Win32.IsWindowVisible(ToolbarSearchForm.Handle))
     {
         ToolbarSearchForm.SelectSearchField();
     }
     else
     {
         NeedFlyingSearchForm().SelectSearchField();
     }
 }
Example #2
0
        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);
        }