• Login
Community
  • Login

Tooltips of the toolbar buttons

Scheduled Pinned Locked Moved General Discussion
7 Posts 4 Posters 861 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.
  • H
    Hairy Chameleon
    last edited by Oct 4, 2022, 9:48 PM

    Could anyone tell me where are tooltips of the custom buttons on the toolbar set up? I walked through the source code of N++ but coldn’t find.

    I’d like to change the default tooltips of the macros and Python Sripts installes on toolbar.

    P 1 Reply Last reply Oct 4, 2022, 10:08 PM Reply Quote 0
    • P
      PeterJones @Hairy Chameleon
      last edited by PeterJones Oct 17, 2022, 12:53 PM Oct 4, 2022, 10:08 PM

      @Hairy-Chameleon

      If the plugin itself adds a button to the toolbar, then it is up to the individual plugin to decide whether or not to allow you to customize the tooltips: PythonScript does not.

      OTOH, if you use the Customize Toolbar plugin to add scripts or macros to the toolbar, then the Customize Toolbar plugin config files do provide a mechanism for giving them whatever tooltip you desire.

      –
      addenda: see my reply further down for correction

      H 1 Reply Last reply Oct 4, 2022, 10:19 PM Reply Quote 0
      • H
        Hairy Chameleon @PeterJones
        last edited by Oct 4, 2022, 10:19 PM

        @PeterJones Thanks for the reply. How does Configure Toolbar plugin provide the change of the tooltip? I can not find any possibility. In the CustomizeToolbar.btn doen’t contain a field for the tooltip string…

        I’m interested the code where the tooltips are set up. I’m interested make some improvement for the plugin to do the tooltip editing.

        A D 2 Replies Last reply Oct 4, 2022, 10:41 PM Reply Quote 0
        • A
          ArkadiuszMichalski @Hairy Chameleon
          last edited by ArkadiuszMichalski Oct 4, 2022, 10:42 PM Oct 4, 2022, 10:41 PM

          @Hairy-Chameleon
          I see that it would be useful not only for me:
          https://community.notepad-plus-plus.org/topic/15412/customize-toolbar-4-1-64-bit-released

          Can you add option to overwrite tooltip for icon? Now it’s the same as command but sometimes I don’t remember where this command comes from and must open CustomizeToolbar.btn file. In this file the last value can do that thing. So rules can looks like this:
          Menu,Menu2_or_Command,Menu3_or_Command,Menu4_or_Command,Icon,Tooltip

          Maybe this icon use default behaviour for tooltip button from Notepad++.

          1 Reply Last reply Reply Quote 0
          • D
            deleelee @Hairy Chameleon
            last edited by Oct 17, 2022, 3:22 AM

            @Hairy-Chameleon said in Tooltips of the toolbar buttons:

            How does Configure Toolbar plugin provide the change of the tooltip

            I’d like to know, too.

            P 1 Reply Last reply Oct 17, 2022, 12:53 PM Reply Quote 0
            • P
              PeterJones @deleelee
              last edited by Oct 17, 2022, 12:53 PM

              @deleelee & @Hairy-Chameleon ,

              Sorry, I was mistaken a few weeks ago when I said that Customize Toolbar provided a mechanism for changing the tooltip. It just so happened that the default tooltip for all the buttons I have added with that plugin were the tooltip I wanted. Sorry for the misinformation.

              D 1 Reply Last reply Oct 17, 2022, 10:24 PM Reply Quote 0
              • D
                deleelee @PeterJones
                last edited by Oct 17, 2022, 10:24 PM

                @PeterJones said in Tooltips of the toolbar buttons:

                @deleelee & @Hairy-Chameleon ,

                Sorry, I was mistaken a few weeks ago when I said that Customize Toolbar provided a mechanism for changing the tooltip. It just so happened that the default tooltip for all the buttons I have added with that plugin were the tooltip I wanted. Sorry for the misinformation.

                No worries, Peter, we all make mistakes every now and then :-D It would be great if there was an option to change the tooltips, though.

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