Next: , Previous: Managing nodetypes flags, Up: The AppTree


4.1.14 Managing actions (primary and secondary ones)

— Function: apptree::set_nodetype_primary_action NODETYPE CALLBACK

Set CALLBACK as the script to call when the user click on the node with <Button-1>.

The node name is appended to CALLBACK before the evaluation.

— Function: apptree::get_nodetype_primary_action NODETYPE

Return the primary action of NODETYPE.

— Function: apptree::set_nodetype_secondary_action NODETYPE CALLBACK

Set CALLBACK as the script to call when the user click on the node with <Button-2>.

The node name is appended to CALLBACK before the evaluation.

— Function: apptree::get_nodetype_secondary_action NODETYPE

Return the secondary action associated with NODETYPE.