User's Guide > User Interface: Dialogs > Tree > Tree Action Callbacks
Tree Action Callbacks
Functions Introduced
Use the function ProUITreeSelectActionSet() to set the select action for a Tree. This function is called when the user changes the selected cells in the Tree.
Use the function ProUITreeActivateActionSet() to set the activate action for a Tree. This function is called when the user presses the return key or double-clicks the left mouse button in the Tree.
Use the function ProUITreeFocusinActionSet() to set the focus in action for a Tree.
Use the function ProUITreeFocusoutActionSet() to set the focus out action for a Tree.
Use the function ProUITreeSelectActionSet() to set the action function to be called when the tree is selected. The left mouse button, the SPACE key and the navigation keys (if the selection policy is PROUISELPOLICY_BROWSE or PROUISELPOLICY_EXTENDED) can be used to make a selection in the tree.
Use the function ProUITreeActivateActionSet() to set the action function to be called when the tree is activated. The tree is activated by the press of RETURN key or the double click of LEFT mouse button over the node in the tree.
Use the function ProUITreeExpandActionSet() to set the action function to be called when the user attempts to expand a tree node by clicking on the '+' sign.
Note:
 
You must make this callback call ProUITreeNodeExpand() to actually expand the node.
Use the function ProUITreeCollapseActionSet() to set the action function to be called when the user attempts to collapse a tree node by clicking on the '-' sign.
Note:
 
You must make this callback call ProUITreeNodeCollapse() to actually collapse the node.
Use the function ProUITreeFocusinActionSet() to set the action function to be called when the tree has got keyboard input focus.
Use the function ProUITreeFocusoutActionSet() to set the action function to be called when the tree has lost keyboard input focus.
Use the function ProUITreeTreecellselectActionSet() to set the action function to be called when the cell of the attribute window of the tree has been selected.
Use the function ProUITreeTreecellactivateActionSet() to set the action function to be called when the cell of the attribute window of the tree has been activated.
Use the function ProUITreeTreecellinputActionSet() to set the action function to be called when text has been entered into a cell of the attribute window of the tree.
Use the function ProUITreeTreecelldeleteActionSet() to set the action function to be called when the DELETE key has been pressed in a cell of the attribute window of the tree.
Use the function ProUITreeMoveActionSet() to set the action function to be called when the sash of the tree between the tree hierarchy and the attribute window has been moved.
Use the function ProUITreeUpdateActionSet() to register a callback that executes when the user toggles a checkbox for an item.
Note:
 
When the update action callback runs, the application determines the name of the item by calling the ProUITreeLastentereditemGet() function.
Isto foi útil?