• Login
Community
  • Login

HowTo set hIconTab for DockingDlgInterface?

Scheduled Pinned Locked Moved Notepad++ & Plugin Development
12 Posts 6 Posters 1.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.
  • M
    MarioRosi @Coises
    last edited by Dec 8, 2023, 3:38 PM

    @Coises

    thanks for the idea.

    It is a partial solution. With an icon its create the icon-handle with

    ...
    data.hIconTab = (HICON)::LoadIcon(getHinst(), MAKEINTRESOURCE(IDI_CHANGE));
    ...
    

    But the DockingDlgInterface don not display the icon…

    T M 2 Replies Last reply Dec 8, 2023, 8:33 PM Reply Quote 0
    • T
      ThosRTanner @MarioRosi
      last edited by ThosRTanner Dec 8, 2023, 8:34 PM Dec 8, 2023, 8:33 PM

      @MarioRosi Have you set the DWS_ICONTAB bit in data.uMask?

      You need to set that for the icon to display.

      I think I might publish my highly overengineered replacement for DockingDlgInterace at some point cos the current one takes a lot of experimentation to get right.

      A 1 Reply Last reply Dec 8, 2023, 8:34 PM Reply Quote 2
      • A
        Alan Kilborn @ThosRTanner
        last edited by Dec 8, 2023, 8:34 PM

        @ThosRTanner said in HowTo set hIconTab for DockingDlgInterface?:

        I think I might publish my highly overengineered replacement for DockingDlgInterace at some point cos the current one takes a lot of experimentation to get right.

        Yes, please!

        T 1 Reply Last reply Dec 17, 2023, 6:04 PM Reply Quote 0
        • M
          Michael Vincent @MarioRosi
          last edited by Dec 8, 2023, 9:17 PM

          @MarioRosi said in HowTo set hIconTab for DockingDlgInterface?:

          But the DockingDlgInterface don not display the icon…

          Your mask is not set correctly:

          data.uMask = DWS_DF_CONT_RIGHT | DWS_ICONTAB;
          

          Cheers.

          M 1 Reply Last reply Dec 9, 2023, 10:43 PM Reply Quote 2
          • M
            MarioRosi @Michael Vincent
            last edited by Dec 9, 2023, 10:43 PM

            @Michael-Vincent

            thanks, that it

            1 Reply Last reply Reply Quote 1
            • T
              ThosRTanner @Alan Kilborn
              last edited by Dec 17, 2023, 6:04 PM

              @Alan-Kilborn Working on it here. I will probably fiddle with the API (and clang settings) and the documentation is definitely still in need of serious work, but it builds and runs

              C++17 is required.

              Feel free to play with it/raise issues/…

              https://github.com/ThosRTanner/Docking_Dialogue_Interface

              A 3 Replies Last reply Dec 18, 2023, 11:35 AM Reply Quote 2
              • A
                Alan Kilborn @ThosRTanner
                last edited by Dec 18, 2023, 11:35 AM

                @ThosRTanner said in HowTo set hIconTab for DockingDlgInterface?:

                Feel free to play with it/raise issues/…

                It is now officially on my to-do list. :-)
                Thanks for your efforts.

                1 Reply Last reply Reply Quote 0
                • A
                  Alan Kilborn @ThosRTanner
                  last edited by Alan Kilborn Dec 21, 2023, 12:59 PM Dec 21, 2023, 12:34 PM

                  @ThosRTanner

                  I gave it a quick try (with Vis. Studio 2022 Community Ed.) but was confused by this from the docs:

                  The layout of this assumes you have created a repositories directory and cloned the notepad++ template repo and this repo into there.

                  Since there are no releases of this, I simply got a zip of the code and extracted it to a folder. Building the .sln I got not-found errors regarding PluginInterface.h which reminded me that I needed the real “notepad++ template” code, so I went and got that, but I was unsure where to put it in the source tree…


                  Later EDIT:

                  In Vis. Studio’s “Solution Explorer” for the new template code, I see there’s a Notepad++ Headers folder which references PluginInterface.h. Looking at what path it thinks that is at, I see it is at the same level as the base folder for this new template, thus I think this is what’s needed:

                  • ...\myfolder\Docking_Dialogue_Interface-master\ <-- new template code
                  • ...\myfolder\plugintemplate\ <-- official Notepad++ template code

                  With this, the “not found” problems seem to be cleared up, but I get some different errors from that point onward…

                  @ThosRTanner , should I open an issue on the site for the project to continue discussing, so as to not annoy uninterested readers here?

                  R 1 Reply Last reply Dec 21, 2023, 6:55 PM Reply Quote 1
                  • R
                    rdipardo @Alan Kilborn
                    last edited by Dec 21, 2023, 6:55 PM

                    @Alan-Kilborn said in HowTo set hIconTab for DockingDlgInterface?:

                    should I open an issue on the site for the project to continue discussing, so as to not annoy uninterested readers here?

                    https://github.com/ThosRTanner/Docking_Dialogue_Interface/issues/1

                    1 Reply Last reply Reply Quote 1
                    • A
                      Alan Kilborn @ThosRTanner
                      last edited by Jan 6, 2024, 1:11 PM

                      @ThosRTanner said:

                      I think I might publish my highly overengineered replacement for DockingDlgInterace at some point cos the current one takes a lot of experimentation to get right.

                      More of an official announcement for it is HERE.

                      1 Reply Last reply Reply Quote 0
                      • A Alan Kilborn referenced this topic on Jan 6, 2024, 1:12 PM
                      • First post
                        Last post
                      The Community of users of the Notepad++ text editor.
                      Powered by NodeBB | Contributors