Community
    • Login

    Customize Toolbar - New Version 4.1

    Scheduled Pinned Locked Moved Notepad++ & Plugin Development
    45 Posts 19 Posters 60.2k 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.
    • Ian EalesI
      Ian Eales
      last edited by

      I copied in the .btn file from Customize.Toolbar.Images.Some.Python.Scripts.zip removing the Python lines.

      Now after editing the Custom Buttons file, no action enables the custom buttons. The .dat file is recreated, but none of the buttons in the file are added to the list or to the toolbar.

      Restoring the CustomizeToolbar.btn file from the Customize.Toolbar.Images.Some.Python.Scripts.zip does not work.

      Deleting the .dat and .btn files restores the default set, but no extra buttons functionality

      Flaky!

      1 Reply Last reply Reply Quote 0
      • Ethan PiliavinE
        Ethan Piliavin
        last edited by

        @dave-user Any chance you can take a look at these requests again?

        • 48x48 (or larger size toolbar icons)
        • better organized icons (in subfolder)
        • better stability of toolbar (per @Ian-Eales )
        1 Reply Last reply Reply Quote 0
        • DeadooshkaD
          Deadooshka
          last edited by

          where to get the source code?

          1 Reply Last reply Reply Quote 0
          • Dann CoxD
            Dann Cox
            last edited by

            I’ve had to switch NPP to 64-bit due to editing restrictions on some corporate software… (long, boring story)
            Of course there are very few plugins available but the one I really want is Customize Toolbar… Any chance of a 64-bit version?

            1 Reply Last reply Reply Quote 1
            • YaronY
              Yaron
              last edited by

              Hello Dann,

              I’d suggest to email the developer (Dave).
              His address appears in Customize Toolbar -> Help - Overview.

              Best regards.

              1 Reply Last reply Reply Quote 0
              • Sibo JiangS
                Sibo Jiang
                last edited by Sibo Jiang

                CoustomizeToolbar.btn file doesn’t support the drop-down menu item with comma inside.

                Eg. Line up multiple lines by(,) include comma inside and hence doesn’t work.

                TextFX,TextFX Edit,Line up multiple lines by(,), xxx.bmp.

                Hope to add this feature in new version.

                1 Reply Last reply Reply Quote 0
                • KrzysiuK
                  Krzysiu
                  last edited by

                  Also if you want own icon, you may find my tool to be handy :) You can create 16x16 icon with it: https://mini.krzysiu.net/icon-generator/ (for now only icons with text, but I’m planning to add symbol font)

                  And then you want to prepare proper BMP. I recommend ImageMagick. The command is:
                  magick convert icon.png BMP3:new_icon.bmp
                  Where icon.png is the original file and new_icon.bmp will be a proper one. Remember that BMP3: is the most important thing here, as the plugin uses BMP version 3 icons. I didn’t manage to save proper icon in GIMP - it seems it uses BMP4 format and it breaks custom button.

                  Steps to reproduce:

                  1. Use default CustomizeToolbar.btn
                  2. Get http://up.krzysiu.net/5USYfpP3d1/toolbar_ico_phperr0.bmp (16x16 bit BMP, 8 bit, yet not compatibile with the plugin; it’s RLE, but non-RLE or any other saved by Gimp were causing the same problem) and place it inside icon directory (in my case %APPDATA%\Notepad++\plugins\config)
                  3. Replace in CustomizeToolbar.btn the line Edit,Select All,,,custom-icon-2.bmp with Edit,Select All,,,toolbar_ico_phperr0.bmp (i.e. replace icon of button that was working at first)
                  4. Run Notepad++ - there’s no “Select all” button in available list
                  5. Close Notepad++, replace the same line in CustomizeToolbar.btn with old version ([…]custom-icon-2.bmp)
                  6. Button is still missing, even if there’s correct icon now

                  Workaround I found to get missing buttons back:

                  1. Close N++
                  2. Move to save place CustomizeToolbar.btn and CustomizeToolbar.dat
                  3. Run N++, so Customize Toolbar will recreate files (default ones) and supposedly some cache
                  4. Close N++
                  5. Replace default files with the copy from 2nd point
                  1 Reply Last reply Reply Quote 0
                  • MAPJe71M
                    MAPJe71 @dave-user
                    last edited by

                    @dave-user Any plans on implementing a 64-bit version and/or can you make the source available through GitHub?

                    1 Reply Last reply Reply Quote 2
                    • Jason BowenJ
                      Jason Bowen
                      last edited by

                      @dave-user I would like to echo @MapJe71’s request for either a 64-bit version or access to the source so users can compile it form themselves.

                      1 Reply Last reply Reply Quote 0
                      • Alexander KravchenkoA
                        Alexander Kravchenko
                        last edited by

                        Why error? img

                        1 Reply Last reply Reply Quote 0
                        • Alexander KravchenkoA
                          Alexander Kravchenko
                          last edited by

                          Why error? look img

                          MAPJe71M 1 Reply Last reply Reply Quote 0
                          • MAPJe71M
                            MAPJe71 @Alexander Kravchenko
                            last edited by MAPJe71

                            @Alexander-Kravchenko uninstall DSpellCheck plugin to “solve” problem.

                            lorolL 1 Reply Last reply Reply Quote 0
                            • leandercaiL
                              leandercai
                              last edited by

                              Hi,Dave:
                              I found that now no plugin can change the size of toolbar’s icon. Would you like to add the feature in your plunin? Thank you.

                              1 Reply Last reply Reply Quote 0
                              • Goodie_SlavaG
                                Goodie_Slava
                                last edited by

                                Custom button error on img:
                                http://i.shotnes.com/u/2837/0423/screenshot_1419.png
                                DSpellCheck removed.
                                How to fix it?

                                1 Reply Last reply Reply Quote 0
                                • YaronY
                                  Yaron
                                  last edited by

                                  Hello @Goodie_Slava,

                                  Did those icons belong to DSpellCheck?
                                  Did you manually edit CustomizeToolbar.btn? - If you did, remove the references from that file.

                                  You can also try deleting CustomizeToolbar.btn and CustomizeToolbar.dat (in the Config folder) and restart NPP.

                                  Best regards.

                                  1 Reply Last reply Reply Quote 0
                                  • Krubkj lkjlökgK
                                    Krubkj lkjlökg
                                    last edited by

                                    Hello
                                    How can I create Icons for funtions which there are no icons yet but there is a menu item for it?
                                    Thanks

                                    1 Reply Last reply Reply Quote 0
                                    • lorolL
                                      lorol @MAPJe71
                                      last edited by lorol

                                      @MAPJe71

                                      Thank you for reporting this. I also had same issues and discussed with Dave.
                                      Apparently the CustomizeToolbar plugin needs all other plugins to be loaded and initialized on start up. Since there is no indication by NPP, an arbitrary waiting time is set then plugin starts. So on slower machines (and with many/ heavy plugins) this time may be insufficient.
                                      As a workaround, a version with longer waiting time is under test,
                                      Note, these times are in milliseconds range so it should not “slow down” too much the NPP startup.

                                      As for DSpellCheck - the relation to this issue is its relatively long overall time to load so any optimization in this regard will help additionally. Already reported on their GitHub

                                      @dave-user Sorry for bringing this instead of you, I am excited that this annoying thing has a workaround!

                                      1 Reply Last reply Reply Quote 1
                                      • andrecool-68A
                                        andrecool-68
                                        last edited by

                                        How to use this plugin to make a button on the toolbar “Document List Panel, Show”
                                        I only get to bring up the Preferences panel

                                        Imgur

                                        dinkumoilD Meta ChuhM 2 Replies Last reply Reply Quote 1
                                        • dinkumoilD
                                          dinkumoil @andrecool-68
                                          last edited by dinkumoil

                                          @andrecool-68

                                          I repeat the most important points of Customize Toolbar plugins’s Help - Custom Buttons and add number 6. based on my experience:

                                          1. Custom buttons are defined using a configuration file (CustomizeToolbar.btn) located in the Notepad++ configuration sub-folder (…\plugins\config).

                                          2. The .btn configuration file must employ Unicode UTF-16 Little Endian encoding, with optional Byte Order Mark (BOM) at start of file, and CR-LF line breaks.
                                            When creating this file with Notepad++, set Encoding to UCS-2 Little Endian.

                                          3. Each definition in the configuration file comprises five comma-separated fields (four menu strings and an optional .bmp icon file name).

                                          4. If the .bmp icon file name is present, the icon file must be located in the Notepad++ configuration sub-folder (…\plugins\config).

                                          5. Each .bmp icon file must be an image of 16x16 pixels with a bit depth of 8-bits. Any pixels with the same colour as the bottom left pixel will appear transparent.

                                          6. You have to localize the menu entries used in the configuration file.

                                          When the Custom Buttons feature is enabled and the .btn configuration file doesn’t exist it is created and contains examples of custom button definitions. These are the examples:

                                          Edit,Select All,,,custom-icon-1.bmp
                                          Plugins,Compare,Compare,,custom-icon-2.bmp
                                          

                                          Since my Notepad++ locale is german I had to change it to:

                                          Bearbeiten,Alles auswählen,,,custom-icon-1.bmp
                                          Erweiterungen,Compare,Compare,,custom-icon-2.bmp
                                          

                                          To please requirement 5. - the 8-bit BMP format of the icons - convert an ICO/PNG/what-ever-file to BMP (usually you’ll get a 24-bit BMP) and convert that to 8-bit BMP using plain old vanilla MS Paint (select 256 colors Bitmap file type).

                                          But finally I gave up to use custom icons because the Customize Toolbar plugin works not very reliable in that point, sometimes it works and sometimes not.

                                          andrecool-68A 1 Reply Last reply Reply Quote 2
                                          • andrecool-68A
                                            andrecool-68 @dinkumoil
                                            last edited by

                                            @dinkumoil
                                            I have three buttons, two of them work:

                                            Plugins,Visual Studio Line Copy,CopyAllowLine,,custom-icon-1.bmp
                                            Plugins,Visual Studio Line Copy,CutAllowLine,,custom-icon-1.bmp
                                            

                                            And one button does not work:

                                            Settings,Preferences...,General,Document List Panel,Show,,custom-icon-1.bmp
                                            
                                            1 Reply Last reply Reply Quote 0
                                            • First post
                                              Last post
                                            The Community of users of the Notepad++ text editor.
                                            Powered by NodeBB | Contributors