Home

Home > Navigation tree expansion

Summarize

ScriptDev the navigation tree provides a powerful Tcl extension orders, the use of these orders can be extended to Tcl script Operation of the navigation tree, ScriptDev itself and many of the functions of the navigation tree is the use of Tcl extension to write the script completed, For example, document management, function analysis. Users can use these extensions order to do their own application development or to ScriptDev Expansion.Below the navigation tree will be introduced to expand the use of orders. Click here to open Navigation tree expansion demo.

Top

Pages Manager

Below are the tree pages for the management of several expansion order:


#-------------------------------------------------------------
# WorkTree addtree TreeType TreeName
# Function   : Create a working tree
# Parameter  : TreeType	- Tree types, types available are as follows
#			1)PGI_DEVICE	: Device management tree
#			2)PGI_CLASS		: Class management tree
#			3)PGI_RSRC		: Source management tree
#			4)PGI_FILE		: File mangement tree
#	         TreeName	- The name of the tree
# Return: Create a tree of ID, if it already exists to return to the existing tree ID
#-------------------------------------------------------------
# WorkTree closetree -TreeID|TreeName
# Function   : Close a working tree
# Parameter  : TreeID/TreeName	- Tree ID or name
# Return     : NA
#-------------------------------------------------------------
# WorkTree gettreeid TreeName
# Function   : According to the tree name ID access
# Parameter  : TreeName	- Tree name
# Return     : Tree ID
#-------------------------------------------------------------

Top

Node Manager

Below are the tree node for the operation of several expansion order:


#-------------------------------------------------------------
# WorkTree additem TreeID hParent ItemName ?-TIM_ITEM|TIM_ID? ?-param(value)...?
# Function   : The creation of a tree node
# Parameter  : TreeID	- Tree ID
#		  hParent	- Father node handler, ROOT said that to create a root node
#		  ItemName	- Node name
#		  -TIM_ITEM	- According to the father node to handle positioning
#		  -TIM_ID	- According to the father node ID to target
#		  param(value) - Optional parameters, the following parameters available
#			1)id(value)		: Settings node ID, value for the ID value
#			2)type(value)	: Settings node type 
#			3)state(value)	: Settings node status
#			4)image(value)	: Settings node icon
#			5)info(value)	: Settings node infomation
#			6)dclick(value)	: Settings node double-click the script
# Return: The node to create a handle
#-------------------------------------------------------------
# WorkTree delitem TreeID id ?-TIM_ITEM|TIM_ID? ?-TIM_CHILDONLY?
# Function   : Remove a tree node
# Parameter  : TreeID	- Tree ID
#		  id		- Node handle or ID
#		  -TIM_ITEM	- According to delete nodes handler (id said handler)
#		  -TIM_ID	- According to the node ID to delete (id said node ID)
#		  -TIM_CHILDONLY - Only to delete all of the nodes
# Return : NA
#-------------------------------------------------------------
# WorkTree getitem info TreeID id ?-TIM_ITEM|TIM_ID?
# Function   : Access to information node tree
# Parameter  : TreeID	- Tree ID
#		  id		- Node handle or ID
#		  info		- Access to what information is available:
#						name	: Node name
#						image	: Node icon
#						type	: Node type
#						state	: Node status
#						parent	: Father node handler
#						info	: Nodes of information
#						dclick	: Double-click the script node
#						child	: Child nodes handler
#		  -TIM_ITEM	- According to target node handler
#		  -TIM_ID	- According to the node ID to target
# Return : Infomation value
#-------------------------------------------------------------
# WorkTree setitem TreeID id ?-TIM_ITEM|TIM_ID? ?-param(value)?
# Function   : Access to information node tree
# Parameter  : TreeID	- Tree ID
#		  id		- Node handle or ID
#		  -TIM_ITEM	- According to target node handler
#		  -TIM_ID	- According to the node ID to target
#		  param(value) - Optional parameters, the following parameters available
#			1)name(value)	: Settings node names 
#			2)type(value)	: Settings node type 
#			3)state(value)	: Settings node status
#			4)image(value)	: Settings node icon
#			5)info(value)	: Settings node infomation
#			6)dclick(value)	: Settings node double-click the script
# Return : Infomation value
#-------------------------------------------------------------
# WorkTree getnextitem TreeID id code ?-TIM_ITEM|TIM_ID?
# Function   : Get next a handle node
# Parameter  : TreeID	- Tree ID
#		  id		- Node handle or ID
#		  code		- Type of operation, said the return of nodes and the relationship between the current node
#			1)TVGN_CARET		: Get to the currently selected node
#			2)TVGN_CHILD		: Get to the first sub-node
#			3)TVGN_DROPHILITE	: Drag and drop get to the target node operation
#			4)TVGN_FIRSTVISIBLE	: This shows that get to the first node
#			5)TVGN_NEXT			: Get next a brother nodes
#			6)TVGN_NEXTVISIBLE	: This shows that get to the next node
#			7)TVGN_PARENT		: Father of get nodes
#			8)TVGN_PREVIOUS		: Before obtaining a brother nodes
#			9)TVGN_PREVIOUSVISIBLE: Before obtaining a visible nodes
#			10)TVGN_ROOT		: Get to the root node of the first sub-node
#		  -TIM_ITEM	- According to target node handler
#		  -TIM_ID	- According to the node ID to target
# Return : Node handler
#-------------------------------------------------------------
# WorkTree searchitem TreeID info
# Function   : According to Info find node
# Parameter  : TreeID	- Tree ID
#		  info		- Node Info
# Return     : find node handler
#-------------------------------------------------------------
# WorkTree expanditem TreeID id ?-TIM_ITEM|TIM_ID?
# Function   : Launched a tree node
# Parameter  : TreeID	- Tree ID
#		  id		- Node handle or ID
#		  -TIM_ITEM	- According to handle node location nodes (id said handler)
#		  -TIM_ID	- According to the node ID to target node (id said node ID)
# Return     : NA
#-------------------------------------------------------------
# WorkTree collapseitem TreeID id ?-TIM_ITEM|TIM_ID?
# Function   : Contraction of a tree node
# Parameter  : TreeID	- Tree ID
#		  id		- Node handle or ID
#		  -TIM_ITEM	- According to handle node location nodes (id said handler) 
#		  -TIM_ID	- According to the node ID to target node (id said node ID)
# Return : NA
#-------------------------------------------------------------
# WorkTree sortchildren TreeID id ?-TIM_ITEM|TIM_ID?
# Function   : Sort of a node of the child nodes
# Parameter  : TreeID	- Tree ID
#		  id		- Node handle or ID
#		  -TIM_ITEM	- According to handle node location nodes (id said handler)
#		  -TIM_ID	- According to the node ID to target node (id said node ID)
# Return : NA
#-------------------------------------------------------------
# WorkTree setdclickscript TreeID script
# Function   : Double-click the script set up nodes
# Parameter  : TreeID	- Tree ID
#		  script	- Double-click the node at the implementation of the script
# Return : NA
#-------------------------------------------------------------

Top

Back