• Login
Community
  • Login

Customize Toolbar - New Version 4.1

Scheduled Pinned Locked Moved Notepad++ & Plugin Development
45 Posts 19 Posters 60.7k 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.
  • A
    Alexander Kravchenko
    last edited by Feb 23, 2018, 8:51 AM

    Why error? img

    1 Reply Last reply Reply Quote 0
    • A
      Alexander Kravchenko
      last edited by Feb 28, 2018, 7:56 AM

      Why error? look img

      M 1 Reply Last reply Feb 28, 2018, 7:53 PM Reply Quote 0
      • M
        MAPJe71 @Alexander Kravchenko
        last edited by MAPJe71 Feb 28, 2018, 7:53 PM Feb 28, 2018, 7:53 PM

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

        L 1 Reply Last reply Dec 14, 2018, 9:33 PM Reply Quote 0
        • L
          leandercai
          last edited by Mar 27, 2018, 1:06 AM

          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
          • G
            Goodie_Slava
            last edited by Apr 23, 2018, 5:34 AM

            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
            • Y
              Yaron
              last edited by Apr 23, 2018, 9:57 PM

              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
              • K
                Krubkj lkjlökg
                last edited by Sep 28, 2018, 6:58 PM

                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
                • L
                  lorol @MAPJe71
                  last edited by lorol Dec 14, 2018, 9:36 PM Dec 14, 2018, 9:33 PM

                  @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
                  • A
                    andrecool-68
                    last edited by Jun 4, 2019, 9:51 AM

                    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

                    D M 2 Replies Last reply Jun 4, 2019, 10:41 AM Reply Quote 1
                    • D
                      dinkumoil @andrecool-68
                      last edited by dinkumoil Jun 4, 2019, 10:42 AM Jun 4, 2019, 10:41 AM

                      @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.

                      A 1 Reply Last reply Jun 4, 2019, 11:25 AM Reply Quote 2
                      • A
                        andrecool-68 @dinkumoil
                        last edited by Jun 4, 2019, 11:25 AM

                        @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
                        • M
                          Meta Chuh moderator @andrecool-68
                          last edited by Meta Chuh Jun 4, 2019, 11:26 AM Jun 4, 2019, 11:25 AM

                          @andrecool-68

                          i don’t think you can toggle doc switcher with the customize toolbar plugin.
                          only menu items can be selected, but not items in a settings window.

                          it would be cool though, to show/hide doc switcher quicker than to go to the settings every time.

                          A 2 Replies Last reply Jun 4, 2019, 11:27 AM Reply Quote 3
                          • A
                            andrecool-68 @Meta Chuh
                            last edited by Jun 4, 2019, 11:27 AM

                            @Meta-Chuh Of course it would be more convenient, this option should also be present in the “view menu”

                            1 Reply Last reply Reply Quote 1
                            • A
                              andrecool-68 @Meta Chuh
                              last edited by Jun 4, 2019, 11:30 AM

                              @Meta-Chuh
                              I found this solution, and it works … but as always I want to simplify the solution … and not complicate it))
                              https://github.com/notepad-plus-plus/notepad-plus-plus/issues/3526#issuecomment-355098777

                              D Alan KilbornA 2 Replies Last reply Jun 4, 2019, 11:42 AM Reply Quote 1
                              • D
                                dinkumoil @andrecool-68
                                last edited by Jun 4, 2019, 11:42 AM

                                @andrecool-68

                                @Meta-Chuh said:

                                only menu items can be selected, but not items in a settings window.

                                That’s exactly the meaning of point 3. in my list above:

                                four menu strings and an optional .bmp icon file name

                                Please note: It says “four menu strings”, so the nesting depth of suitable menu entries can only be 4.

                                A 1 Reply Last reply Jun 4, 2019, 12:36 PM Reply Quote 2
                                • A
                                  andrecool-68 @dinkumoil
                                  last edited by Jun 4, 2019, 12:36 PM

                                  @dinkumoil You mean that I got five lines … and because of this all the problems?

                                  D 1 Reply Last reply Jun 4, 2019, 1:47 PM Reply Quote 0
                                  • Alan KilbornA
                                    Alan Kilborn @andrecool-68
                                    last edited by Jun 4, 2019, 12:40 PM

                                    @andrecool-68 said:

                                    I found this solution, and it works

                                    Also can do it via Pythonscript:

                                    notepad.showDocSwitcher(boolean)

                                    A 1 Reply Last reply Jun 4, 2019, 6:55 PM Reply Quote 2
                                    • D
                                      dinkumoil @andrecool-68
                                      last edited by dinkumoil Jun 4, 2019, 1:54 PM Jun 4, 2019, 1:47 PM

                                      @andrecool-68 said:

                                      @dinkumoil You mean that I got five lines … and because of this all the problems?

                                      No, the cause of your problem was that you tried to toggle settings in the preferences dialog. That’s not the intended use case of the Customize Toolbar plugin.

                                      Mentioning the 4 menu strings was meant to be as a hint that you maybe should read the specs of the plugin more thoroughly before further experiments.

                                      BTW: Your first screenshot concerning the issue showed three hammer icons, the default symbol for not assignable icons (e.g. icon file not found or wrong icon file format).

                                      1 Reply Last reply Reply Quote 2
                                      • A
                                        andrecool-68 @Alan Kilborn
                                        last edited by Jun 4, 2019, 6:55 PM

                                        @Alan-Kilborn Why not show how to do it?

                                        Alan KilbornA 1 Reply Last reply Jun 4, 2019, 7:06 PM Reply Quote 0
                                        • Alan KilbornA
                                          Alan Kilborn @andrecool-68
                                          last edited by Jun 4, 2019, 7:06 PM

                                          @andrecool-68

                                          Hmmmm…

                                          Install Pythonscript plugin
                                          Create new script, call it ShowDocSwitcher.py
                                          In body of script, put notepad.showDocSwitcher(True)
                                          Save script
                                          To run script, go to Plugins > Pythonscript > Scripts and select ShowDocSwitcher
                                          DOC SWITCHER WINDOW IS SHOWN
                                          Optional: Create shortcut or toolbar button for script

                                          Create another new script, call it HideDocSwitcher.py
                                          In body of script, put notepad.showDocSwitcher(False)
                                          Save script
                                          To run script, go to Plugins > Pythonscript > Scripts and select HideDocSwitcher
                                          DOC SWITCHER WINDOW IS HIDDEN
                                          Optional: Create shortcut or toolbar button for script

                                          :^P

                                          1 Reply Last reply Reply Quote 2
                                          • First post
                                            Last post
                                          The Community of users of the Notepad++ text editor.
                                          Powered by NodeBB | Contributors