Community

    • Login
    • Search
    • Recent
    • Tags
    • Popular
    • Users
    • Groups
    • Search

    .NET Plugin: Dockable Dialog freezes Notepad++

    Plugin Development
    5
    11
    5022
    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.
    • Krid82
      Krid82 last edited by

      Hi,

      I came across a show-stopping issue with dockable-dialogs written in .NET. It is fairly easy to reproduce:

      1. Create a new Plugin-Project in Visual Studio using the .NET plugin template
      2. Place a GroupBox (or any other container control) on the “frmMyDlg” form
      3. Place a button inside the GroupBox (so the button becomes a child of the groupbox)
      4. Compile the plugin
      5. In Notepad++, UNDOCK the dialog (dialog must be floating)
      6. Click the button
      7. Use the mouse to move the dialog window -> Notepad++ freezes

      It only happens when the button is a child of a container control. When the button is a direct child of the form, it works. There is also no problem as long as the dialog is docked.

      Any ideas?
      Thanks
      Dirk

      1 Reply Last reply Reply Quote 1
      • dail
        dail last edited by dail

        using the .NET plugin template

        Which template exactly? There are a few different versions of it floating around, some of them being pretty old. The most recent and currently maintained is located here.

        1 Reply Last reply Reply Quote 0
        • Krid82
          Krid82 last edited by

          I used the template from your link. It also happens with the “old” v0.60 plugin.

          1 Reply Last reply Reply Quote 0
          • dail
            dail last edited by dail

            I would either open an issue on that github page or maybe pinging @Kasper-Graversen will get him to see this :)

            1 Reply Last reply Reply Quote 0
            • Kasper Graversen
              Kasper Graversen last edited by

              Hi @Krid82

              Thanks for the report. As of yet, my work has predominately been making the interface to N++ smoother from C#. I have yet do dig into the details. However, I have to a large extend been discouraged by the fact that neither the author of Scintilla nor the author of N++ seem to have an interest in cleaning up their interfaces.

              Nor has the author of N++ wanted to link my C# project to the N++ homepage, and my plugins are not to be found in the plugin manager. In many respects its very easy to get discouraged in the N++ community.

              1 Reply Last reply Reply Quote 0
              • Krid82
                Krid82 last edited by

                Thanks for your answer Kasper. I have spent two days trying to fix this problem, but I was not successful. I created a regular C++ plugin and hosted my .NET form in there (as C++ can work as a bridge between native and managed code). The behaviour is similar: As long as the dialog is docked it works but as soon as it’s undocked N++ freezes.

                I also tried to create a new Thread for the dialog and then use Application.Run(mydialog) so the dialog has it’s own message-pump. That didn’t help either.

                I’m giving up, I can’t affort to spent more time on this.
                Regards
                Dirk

                Kasper Graversen 1 Reply Last reply Reply Quote 0
                • MAPJe71
                  MAPJe71 last edited by

                  @Kasper-Graversen

                  Could you elaborate on cleaning of the Scintilla and Notepad++ interfaces?
                  Did you register for an account on the Notepad++ Plugins Repository to get your plugins listed?

                  Kasper Graversen 1 Reply Last reply Reply Quote 0
                  • Kasper Graversen
                    Kasper Graversen @Krid82 last edited by

                    @Krid82 Many thanks for the effort. There are some real wizards in here like @dail and others. Perhaps they can be of assistance?

                    1 Reply Last reply Reply Quote 0
                    • Kasper Graversen
                      Kasper Graversen @MAPJe71 last edited by

                      @MAPJe71 No I have not. Im missing that link on https://notepad-plus-plus.org/contribute/plugin-howto.html there is no information about needing to register. Anyway I just tried creating an account now…

                      1 Reply Last reply Reply Quote 0
                      • chcg
                        chcg last edited by

                        @Kasper-Graversen It is mentioned here:
                        http://docs.notepad-plus-plus.org/index.php?title=Plugin_Central
                        and under Plugins at https://notepad-plus-plus.org/resources.html
                        , but a hint at https://notepad-plus-plus.org/contribute/plugin-howto.html makes sense.

                        Also some other links are a little bit outdated, but I’m not sure how to contribute to the webpage.

                        1 Reply Last reply Reply Quote 1
                        • Kasper Graversen
                          Kasper Graversen last edited by

                          In the past I’ve tried contacting don ho… but he has never replied. It is really shit how important information is never updated. Many people are willing to help out but none of them has access to anything utility this site…

                          1 Reply Last reply Reply Quote 0
                          • First post
                            Last post
                          Copyright © 2014 NodeBB Forums | Contributors