Work at SourceForge, help us to make it a better place! We have an immediate need for a Support Technician in our San Francisco or Denver office.

Close

MENUCOMMAND.SEARCH_CLEARALLMARKS

Help
2012-05-22
2013-01-25
  • 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:

    editor.setIndicatorCurrent(31)
    editor.indicatorClearRange(0, editor.getLength())
    
     
  • Neil.L
    Neil.L
    2012-05-23

    it's works, thanks very much!