dagOpenTool
dagOpenTool( x_backGroundColor l_bBox w_startingObject t_name t_help) =>w_dagTool/ nil
Description
Creates a dagTool object and opens a window in which to display the graph starting from the specified starting node.
Arguments
Value Returned
Examples
tool = dagOpenTool( hiMatchColorByName("white"
list(100:100 400:400)
myNode "myTool" "xxxHelpSymbol" )
Additional Information
To close a dagTool, call hiCloseWindow.
hiCloseWindow( tool->window )
If you have specified a closeProc property on the tool, that procedure is called just before the tool or the window for it is destroyed. The user may close a dag tool by using a window manager Quit or Close button, which will also cause the closeProc to be called.
In closeProc you should be sure to destroy all the nodes and arcs you created for this graph that you no longer need. For example, if the nodes in this browser tool are used only in this browser and you have no nodes pushed on the starting object stack, you could call
dagDestroyNode( tool->startingObject )
Related Topics
Return to top