jn-npp-plugin icon indicating copy to clipboard operation
jn-npp-plugin copied to clipboard

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

Open trdm opened this issue 5 years ago • 5 comments

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

trdm avatar Oct 07 '20 16:10 trdm

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

sieukrem avatar Oct 07 '20 17:10 sieukrem

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

trdm avatar Oct 07 '20 18:10 trdm

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.

sieukrem avatar Oct 07 '20 20:10 sieukrem

Я посмотрю.

trdm avatar Oct 07 '20 21:10 trdm

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

sieukrem avatar Dec 26 '20 20:12 sieukrem