Community
    • Login

    Changing whether a toolbar icon is highlighted

    Scheduled Pinned Locked Moved Notepad++ & Plugin Development
    toolbarplugin
    3 Posts 2 Posters 278 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.
    • Mark OlsonM
      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
        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
          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
          • First post
            Last post
          The Community of users of the Notepad++ text editor.
          Powered by NodeBB | Contributors