Please add API to show dynamic-button commands and .dcf files as pop-up menus

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.

The scripting Dialog object lets scripts make and show pop-up menus.

As long as there's a way for the script to build the menu (e.g. iterating through the lister's tabs in the case of your example), you should already have all you need to do this.

That API allows you to replicate dynamic-button lists including their icons? That didn't appear to me to be the case! How would you have access to the list output of every dynamic-button command?

No, that wasn't my example! What I said about Go TABSWITCHER was exclusively related to the same kind of pop-up placement relative to the lister, i.e., centered (which, BTW, the Dialog API doesn't currently allow). For a pop-up with a list of tabs, I can obviously use the Go TABSWITCHER command itself (and I do).