Hi, you have been writen a great npp's plugin called Python Script, but I found a problem that:
a menuCommand do not work, it is MENUCOMMAND.SEARCH_CLEARALLMARKS
here is my test:
# it works, a find dialog popuped
notepad.menuCommand(MENUCOMMAND.SEARCH_FIND)
# after menu->search-find-mark-mark all, some text are highlight, and I execute this command
# but it not works, highlight are not clear at all
notepad.menuCommand(MENUCOMMAND.SEARCH_CLEARALLMARKS)
I don't know why. Please check it and tell me, thank you very much!
If you would like to refer to this comment somewhere else in this project, copy and paste the following link:
SEARCH_CLEARALLMARKS clears the "Mark using style" marks, not the find marks. If you click the menu option after a find-mark-mark-all you don't get any effect either.
The only way to clear programmatically, that I can see, is to clear the indicator directly in scintilla:
Hi, you have been writen a great npp's plugin called Python Script, but I found a problem that:
a menuCommand do not work, it is MENUCOMMAND.SEARCH_CLEARALLMARKS
here is my test:
# it works, a find dialog popuped
notepad.menuCommand(MENUCOMMAND.SEARCH_FIND)
# after menu->search-find-mark-mark all, some text are highlight, and I execute this command
# but it not works, highlight are not clear at all
notepad.menuCommand(MENUCOMMAND.SEARCH_CLEARALLMARKS)
I don't know why. Please check it and tell me, thank you very much!
This message was received from "L Y".
SEARCH_CLEARALLMARKS clears the "Mark using style" marks, not the find marks. If you click the menu option after a find-mark-mark-all you don't get any effect either.
The only way to clear programmatically, that I can see, is to clear the indicator directly in scintilla:
it's works, thanks very much!