onChangeSelection: Difference between revisions

From RPTools Wiki
Jump to navigation Jump to search
No edit summary
m (Added Languages tag)
 
(One intermediate revision by one other user not shown)
Line 1: Line 1:
{{Languages|onChangeSelection}}
This event is triggered whenever the user selects a token.
This event is triggered whenever the user selects a token.


As a frame-based event, a frame containing the event code has to be opened.
As a frame-based event, a frame or overlay containing the event code has to be opened.


== Set up ==
== Set up ==
Line 15: Line 16:
[[Category:Event]]
[[Category:Event]]
[[Category:Macro Function]]
[[Category:Macro Function]]
{{Languages|onChangeSelection}}

Latest revision as of 10:15, 6 September 2024

Languages:  English  • 日本語

This event is triggered whenever the user selects a token.

As a frame-based event, a frame or overlay containing the event code has to be opened.

Set up

Create a frame that has this special html tag in it:

<link rel='onChangeSelection' type='macro' href='macroLink'>

Replace macroLink by an actual macroLinkText-call to a macro of your choice (the returned value of macroLinkText()). A common practice is to call the frame opening macro itself to actualize the content.

See Also

Forms tutorial#Events

Languages:  English  • 日本語