<< Click to Display Table of Contents >> Navigation: »No topics above this level« TOC : Script API > JavaScript > JavaScript API > Component > Shape > Rectangle > Method >SetLinkEvent |
Set to raise the link event and pass argument values to external events(OZLinkCommand, OZUserActionCommand).
Prototype :
void SetLinkEvent
(
string UserTag,
string UserValue,
[string MouseButton],
[bool UsePopupMenu]
)
Arguments :
UserTag |
User defined Tag |
UserValue |
User defined value |
MouseButton |
mouse button to trigger the event one of "Left", "Right", "Left, Right" the default is Left |
UsePopupMenu |
set whether to show viewer popup menu the default is false |
Reference :
To raise OZLinkCommand or OZUserActionCommand event, set the viewer parameters, viewer.linkcommand or viewer.useractioncommand, to true.
The MouseButton argument indicates which (left or right) mouse button will raise the link event.
The UsePopupMenu argument works only when the MouseButton argument value is "Right", "Left, Right".
Example :
This.SetLinkEvent("Region", "Seoul");
Available Events :
OnAddToPage, OnBind, OnEndBind, OnInitialize, OnStartBind