Community
    • Login

    Capturing Scintilla notifications

    Scheduled Pinned Locked Moved Notepad++ & Plugin Development
    3 Posts 2 Posters 343 Views
    Loading More Posts
    • Oldest to Newest
    • Newest to Oldest
    • Most Votes
    Reply
    • Reply as topic
    Log in to reply
    This topic has been deleted. Only users with topic management privileges can see it.
    • S
      sebaogal
      last edited by

      Hi, I am kind of new in plugin development. I would like to know how can I capture Scintilla notifications for me to process them. For example, in a normal Notepad++ session, how can I capture SCN_DWELLSTART from my plugin and execute a callback?

      I have seen some examples but I am still confused. One solution maybe is to create a new Scintilla handle, is this the cleanest one? Or maybe to use Python, but would like to avoid depending on other plugins.

      I would really appreciate your help. Thank you in advance.

      dailD 1 Reply Last reply Reply Quote 0
      • dailD
        dail @sebaogal
        last edited by

        @sebaogal

        With a normal plugin DLL there is a function you must define that handles notifications from Scintilla and Notepad++

        You can see an example C++ plugin here:

        https://github.com/dail8859/BetterMultiSelection/blob/4b834e5ab35d1e07291a7f4f4b5ece518f6a2f93/src/Main.cpp#L625

        S 1 Reply Last reply Reply Quote 5
        • S
          sebaogal @dail
          last edited by

          @dail this is exactly what I was looking for. Thank you so much!

          1 Reply Last reply Reply Quote 0
          • First post
            Last post
          The Community of users of the Notepad++ text editor.
          Powered by NodeBB | Contributors