Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Show a prompt in the status bar when activating a menu. #101

Open
trdm opened this issue Oct 7, 2020 · 5 comments
Open

Show a prompt in the status bar when activating a menu. #101

trdm opened this issue Oct 7, 2020 · 5 comments

Comments

@trdm
Copy link

trdm commented Oct 7, 2020

Hi, sieukrem.
Whether it is possible to show a hint in the status bar when activating a menu?
var mySwitchIntellMode = {
text: "Intellisense (вкл/выкл)\tctrl+F8", //"Switch intell mode\tctrl+F8",
ctrl: true,
shift: false,
alt: false,
key: 0x77,
cmd: switchIntellMode,
prompt: "Функция switchIntellMode" //<<<<<<
};

addHotKey(mySwitchIntellMode);
gIntellModeMenuItem = scriptsMenu.addItem(mySwitchIntellMode);
Screenshot_232

@sieukrem
Copy link
Owner

sieukrem commented Oct 7, 2020

You can do it by calling winapi functions https://github.com/sieukrem/jn-npp-plugin/wiki/Helpful-scripts

@trdm
Copy link
Author

trdm commented Oct 7, 2020

Да установить текст в статус-бар я смогу, а вот отловить момент активации пункта меню и узнать его prompt - нет.

@sieukrem
Copy link
Owner

sieukrem commented Oct 7, 2020

There is a menu event triggered when menu expands https://github.com/sieukrem/jn-npp-plugin/wiki/Working-with-menu#best-way-to-disable-whole-submenu-or-single-menu-entry

But I guess you want an event on mouse over menu item. This one is not implemented and I don't know whether windows provides it.

@trdm
Copy link
Author

trdm commented Oct 7, 2020

Я посмотрю.

@sieukrem
Copy link
Owner

I assume you did not find the corresponding API events. Could we close this issue?

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants