Am 16.09.24 um 11:41 schrieb Hans van der Meer via ntg-context:
\button is defined to jump to a given reference. However, I would like to place a button that can execute a macro to be defined by myself. Thus for example pushing the button \executebutton{text}{macro} will execute that macro.

Is this available somewhere in ConTeXT? If not, can it be provided in a future update?

Did you try \button[Options]{Something}[YourJSFunction] ?

I don’t know it that’s limited to a few predefined functions.

see https://wiki.contextgarden.net/Widgets#JavaScript and https://source.contextgarden.net/scrn-but.mkvi

Just to be sure: You understand that this works via JavaScript in the viewer, only supported by Acrobat and PDF Studio?

Hraban
___________________________________________________________________________________
If your question is of interest to others as well, please add an entry to the 
Wiki!

maillist : ntg-context@ntg.nl / 
https://mailman.ntg.nl/mailman3/lists/ntg-context.ntg.nl
webpage  : https://www.pragma-ade.nl / https://context.aanhet.net (mirror)
archive  : https://github.com/contextgarden/context
wiki     : https://wiki.contextgarden.net
___________________________________________________________________________________
  • [NTG-context] button Hans van der Meer via ntg-context
    • [NTG-context] Re: button Henning Hraban Ramm

Reply via email to