Community
    • Login

    Changing whether a toolbar icon is highlighted

    Scheduled Pinned Locked Moved Notepad++ & Plugin Development
    toolbarplugin
    3 Posts 2 Posters 725 Views 1 Watching
    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.
    • Mark OlsonM Offline
      Mark Olson
      last edited by Mark Olson

      I noticed that some plugins have toolbar icons that are highlighted under some circumstances, like this:
      cf140b3e-5e39-4fd2-88a0-c006bf28b901-image.png
      and not highlighted other times, like this:
      79d46930-498a-4dec-8166-f79354c312bf-image.png

      Is it possible to manually change whether the toolbar icon is highlighted? I can’t find any documentation that suggests that this is possible.

      AFAIK this typically only happens when a form is opened or closed. But I might want to have a setting that I can toggle on/off by clicking the toolbar, and it would be nice if the highlighting of the icon depended on the value of that setting.

      rdipardoR 1 Reply Last reply Reply Quote 0
      • rdipardoR Offline
        rdipardo @Mark Olson
        last edited by

        @Mark-Olson said in Changing whether a toolbar icon is highlighted:

        Is it possible to manually change whether the toolbar icon is highlighted?

        NPPM_SETMENUITEMCHECK

        See https://community.notepad-plus-plus.org/post/88647 for some tips on correct usage.

        Mark OlsonM 1 Reply Last reply Reply Quote 2
        • Mark OlsonM Offline
          Mark Olson @rdipardo
          last edited by

          @rdipardo said in Changing whether a toolbar icon is highlighted:

          NPPM_SETMENUITEMCHECK

          Agree that that works to check the menu item in the plugin menu, but it doesn’t do anything to the toolbar icon.

          I’ll just create an issue in my new C# plugin pack once I finally release it to GitHub, and maybe you can submit a PR.

          1 Reply Last reply Reply Quote 0

          Hello! It looks like you're interested in this conversation, but you don't have an account yet.

          Getting fed up of having to scroll through the same posts each visit? When you register for an account, you'll always come back to exactly where you were before, and choose to be notified of new replies (either via email, or push notification). You'll also be able to save bookmarks and upvote posts to show your appreciation to other community members.

          With your input, this post could be even better 💗

          Register Login
          • First post
            Last post
          The Community of users of the Notepad++ text editor.
          Powered by NodeBB | Contributors