context menu

local kuzn at htsc.mephi.ru
Wed Mar 19 21:20:34 CET 2008


Hi,

most of modern programms (GUI) provide context menu bound
to the right mouse button. If some special case is detected
at pointer position (for example, a misspelled word) a special menu
pops up (for example, spellcheckers menu), otherwise a standard (background)
menu pops up.

Unfortunately, it is impossible to make fully-functional context menu in NEdit.
We can mark and detect "special cases" in a text via rangesets, using macros we
can construct practically any action to treat with the cases, we can also make
GUI (dialogs) for such a treatment and bound it to a key or mouse event.
At the same time we cannot combine treatment of special cases with call for
standard background menu.

NEdit macro language provides undocumented post_window_bg_menu() macro.
When this macro is bound to some key, like,
Modifier<Key>Some: grab_focus();post_window_bg_menu()
the background menu pops up, but keyboard navigation does not work, only mouse
can be used to operate upon this menu.
When the post_window_bg_menu() macro is bound to some mouse event
no background menu pops up. Thus we can call background menu via keyboard
but may operate upon it only using mouse.

Dear code-developers, is it possible to extend macro language by a macro-call
for the background menu which can be bound to a mouse event?
Context menu is very powerful and helpful feature having many applications.

Alexey Kuznetsov


More information about the Discuss mailing list