sieukrem / jn-npp-plugin

Plugin for Notepad++ allowing you to automate some tasks using JavaScript
https://github.com/sieukrem/jn-npp-plugin/wiki
110 stars 24 forks source link

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

Open trdm opened 4 years ago

trdm commented 4 years ago

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 commented 4 years ago

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

trdm commented 4 years ago

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

sieukrem commented 4 years ago

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 commented 4 years ago

Я посмотрю.

sieukrem commented 3 years ago

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