Community
    • Login

    Capturing Scintilla notifications

    Scheduled Pinned Locked Moved Notepad++ & Plugin Development
    3 Posts 2 Posters 861 Views 2 Watching
    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 Offline
      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 Offline
        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 Offline
          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

          Hello! It looks like you're interested in this conversation, but you don't have an account yet.

          Getting fed up of having to scroll through the same posts each visit? When you register for an account, you'll always come back to exactly where you were before, and choose to be notified of new replies (either via email, or push notification). You'll also be able to save bookmarks and upvote posts to show your appreciation to other community members.

          With your input, this post could be even better 💗

          Register Login
          • First post
            Last post
          The Community of users of the Notepad++ text editor.
          Powered by NodeBB | Contributors