Community
    • Login

    New cross-platform plugin template for Delphi developers

    Scheduled Pinned Locked Moved Notepad++ & Plugin Development
    24 Posts 5 Posters 3.5k 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.
    • K
      klaus101
      last edited by klaus101

      @rdipardo and @Ekopalypse,
      many thanks for your valuable explanations!

      In Lazarus, for debugging DLLs, one can set a ‘host application’ to execute with; so one is able to set breakpoints in the pascal code etc.
      All plugin templates i tried before, crashed … at addresses outside the scope of the pascal code though.
      Your template rdipardo was the first one i found that showed up as a really fine working example :-) :-). Unfortunately, after setting the host application, the “run” functionality is not enabled. For all crashing templates, it had been enabled. I just kicked a question in the Laz. newsgroup what’s required to enable it.

      Could you at least, for the moment, confirm (or maybe not confirm, so that’s my fault) if you could reproduce? By commenting a few lines, and retry?

      I try to describe more precise what happens:

      • First, a session with the unchanged / full menu. - config.xml says:
        <PluginDlg pluginName=“HelloWorld.dll” id=“2” curr=“0” prev=“-1” isVisible=“yes” />

      • Then, shrinked menu creation to the three items “Load docking form”, Separator, “About”
        Menuentries.jpg

      • Removed the old entry for pluginName=“HelloWorld.dll” from the config.xml for to have a clean restart

      • Start NPP with the new compiled DLL and click menu item “Load docking form”, and close NPP again

      • NPP rewrites the new line:
        <PluginDlg pluginName=“HelloWorld.dll” id=“2” curr=“0” prev=“-1” isVisible=“yes” />
        So far all looks fine!

      • Now restart NPP again … and, what will appear at first, is the demo About box.

      • Afterwards, config.xml entry showed up unchanged:
        <PluginDlg pluginName=“HelloWorld.dll” id=“2” curr=“0” prev=“-1” isVisible=“yes” />

      I understand that, if some first pointers a invalid, but the last one (for About) keeps to be valid, this last one will be used.
      But who stored the unbalanced info where?

      –> Btw: i fear that this specific issue - and the question about the dark theme - will run extremely out of scope of this specific topic, which wants to inform about the new template. Better to continue in/as a new topic if needed?

      PeterJonesP 1 Reply Last reply Reply Quote 0
      • PeterJonesP
        PeterJones @klaus101
        last edited by

        @klaus101 said in New cross-platform plugin template for Delphi developers:

        Btw: i fear that this specific issue - and the question about the dark theme - will run extremely out of scope of this specific topic, which wants to inform about the new template. Better to continue in/as a new topic if needed?

        If @rdipardo wants it to be split off, to avoid cluttering the main Delphi-plugin-template Topic, I could use my moderator power to split off all the recent posts to that new topic, if you give me a meaningful name to use for the new Topic. But if @rdipardo doesn’t mind it staying here, that’s fine by me.

        1 Reply Last reply Reply Quote 1
        • K
          klaus101
          last edited by klaus101

          @PeterJones, thank you for your proposal!
          It’s related to Delphi as well as Lazarus development environments (would be interesting to know btw if the issue (if any) does show up with Delphi too).

          If @rdipardo wants it to be split off, i’d see two topics here:
          Plugin template for Delphi and Lazarus developers: question about modifying the plugin’s demo menu (Lazarus)
          Plugin template for Delphi and Lazarus developers: question about possibility to skip dark mode theme handling

          1 Reply Last reply Reply Quote 0
          • rdipardoR
            rdipardo
            last edited by

            @PeterJones: the wiki is now up, so this thread can be locked 🔒, please and thank you.

            1 Reply Last reply Reply Quote 0
            • PeterJonesP PeterJones locked this topic on
            • K klaus101 referenced this topic on
            • First post
              Last post
            The Community of users of the Notepad++ text editor.
            Powered by NodeBB | Contributors