How to have two actions on the same event?

23 views
Skip to first unread message

Ryan

unread,
May 26, 2017, 6:08:30 PM5/26/17
to PDFTron PDFNet SDK
Question:

I want to have two actions executed on a field's down event.

Answer:

You can actually chain actions. The following code should help you.

Obj after_action_dict = widget_annot.GetSDFObj().PutDict("AA");
after_action_dict
.Put("D", your_action.GetSDFObj());
your_action
.GetSDFObj().Put("Next", your_next_action.GetSDFObj());
// if you want to chain additional actions, you can also put an Array object under the "Next" key, and push back actions in the order you want.
// That is "Next" can either point to a single Action dictionary, or an Array containing multiple Action dictionaries (which in turn can each nest further)

This post might also be helpful.
Reply all
Reply to author
Forward
0 new messages