When controling DOpus with voice commands, it would be very useful to be able to show dynamic-button commands - or, while we're at it, .dcf files for more complex arrangements - as pop-up menus. Outside the context of voice control, it may also be useful to trigger such pop-up menus with hotkeys.
I guess the infrastructure you already have in your codebase would make it quite easy to add a function to the JScript API that shows a pop-up menu, based on either a dynamic-button command like Go DRIVEBUTTONS
or Undo LIST
, or on the path to a .dcf file.
For the voice command context, it would be useful to be able to let the pop-up menu appear centered on the lister (or standalone viewer) (like the Go TABSWITCHER
pop-up), but in other use cases, one may possibly prefer the current mouse cursor position. So, this should probably be configurable via a function argument.
I think I saw some comments about performance in the context of dynamic buttons. Should that be relevant, there could be a way to create an object based on a dynamic-button command or .dcf file path, and then use that object any number of times to show it as a pop-up menu.