• Login
Community
  • Login

Capturing Scintilla notifications

Scheduled Pinned Locked Moved Notepad++ & Plugin Development
3 Posts 2 Posters 344 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 Aug 26, 2021, 9:07 PM

    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.

    D 1 Reply Last reply Aug 26, 2021, 10:21 PM Reply Quote 0
    • D
      dail @sebaogal
      last edited by Aug 26, 2021, 10:21 PM

      @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 Aug 27, 2021, 10:56 PM Reply Quote 5
      • S
        sebaogal @dail
        last edited by Aug 27, 2021, 10:56 PM

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

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