Changing whether a toolbar icon is highlighted
-
I noticed that some plugins have toolbar icons that are highlighted under some circumstances, like this:

and not highlighted other times, like this:

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.
-
@Mark-Olson said in Changing whether a toolbar icon is highlighted:
Is it possible to manually change whether the toolbar icon is highlighted?
See https://community.notepad-plus-plus.org/post/88647 for some tips on correct usage.
-
@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.
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