Category Custom user interface, Object ProUITree

Function ProUITreeCollapseActionSet


Description
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.

Synopsis
#include <ProUITree.h>
ProErrorProUITreeCollapseActionSet(
char* dialog
/* (In)
The name of the dialog that contains the tree.
*/
char* component
/* (In)
The name of the tree component.
*/
ProUIAction callback
/* (In)
Function to be called when node is collapsed.
*/
ProAppData data
/* (In)
Action data passed to the callback function. Can be NULL.
*/
)
Returns
PRO_TK_NO_ERRORThe function succeeded.
PRO_TK_GENERAL_ERRORThe function failed.
PRO_TK_BAD_INPUTSOne or more input arguments was invalid.
See Also
ProUITreeTreeexpcolnodeGet

Manual References:

  1. User Interface: Dialogs: Tree Action Callbacks
  2. User Interface: Dialogs: Tree Action Callbacks