⭐ 欢迎来到虫虫下载站! | 📦 资源下载 📁 资源专辑 ℹ️ 关于我们
⭐ 虫虫下载站

📄 tree.html

📁 是TCL的另外一个编译(解释)器
💻 HTML
📖 第 1 页 / 共 2 页
字号:
</DL><DL><DT><A NAME="-linesfill"><B>-linesfill</B></A></DT><DD>Specifies a foreground color for the lines between nodes.</DD></DL><DL><DT><A NAME="-linestipple"><B>-linestipple</B></A></DT><DD>Specifies a stipple bitmap for the lines between nodes.</DD></DL><DL><DT><A NAME="-opencmd"><B>-opencmd</B></A></DT><DD>Specifies a command to be called when user open a node. Theopened node is appended to the command.</DD></DL><DL><DT><A NAME="-padx"><B>-padx</B></A></DT><DD>Specifies distance between image or window and text of the nodes.</DD></DL><DL><DT><A NAME="-redraw"><B>-redraw</B></A></DT><DD>Specifies wether or not the tree should be redrawn when entering idle.Set it to false if you call <B>update</B> while modifying the tree.</DD></DL><DL><DT><A NAME="-showlines"><B>-showlines</B></A></DT><DD>Specifies whether or not lines should be drawn between nodes.</DD></DL><DL><DT><A NAME="-width"><B>-width</B></A></DT><DD>Specifies the desired width for the tree in units of 8 pixels.</DD></DL><HR WIDTH="50%"><BR><B><A NAME="wc">WIDGET COMMAND</A></B><BR><DL><DT><A NAME="bindImage"><I>pathName</I> <B>bindImage</B></A> <I>event</I> <I>script</I></DT><DD>This command associates a command to execute whenever the eventsequence given by <I>event</I> occurs on the image of a node.The node idenfier on which the event occurs is appended to the command.</DD></DL><DL><DT><A NAME="bindText"><I>pathName</I> <B>bindText</B></A> <I>event</I> <I>script</I></DT><DD>This command associates a command to execute whenever the eventsequence given by <I>event</I> occurs on the label of a node.The node idenfier on which the event occurs is appended to the command.</DD></DL><DL><DT><A NAME="cget"><I>pathName</I> <B>cget</B></A> <I>option</I></DT><DD>Returns the current value of the configuration option given by <I>option</I>.<I>Option</I> may have any of the values accepted by the creation command.</DD></DL><DL><DT><A NAME="closetree"><I>pathName</I> <B>closetree</B></A> <I>node</I>?<I>recurse</I>?</DT><DD>This command close all the subtree given by <I>node</I>. Recursethrough the tree starting at <I>node</I> and set <B>open</B> option to 0depending on <I>recurse</I>. Default value of <I>recurse</I> is <I>true</I>.</DD></DL><DL><DT><A NAME="configure"><I>pathName</I> <B>configure</B></A> ?<I>option</I>? ?<I>value</I> <I>option</I> <I>value</I> ...?</DT><DD>Query or modify the configuration options of the widget. If no <I>option</I> isspecified, returns a list describing all of the available options for<I>pathName</I>.  If <I>option</I> is specified with no <I>value</I>, then thecommand returns a list describing the one named <I>option</I> (this list willbe identical to the corresponding sublist of the value returned if no<I>option</I> is specified). If one or more <I>option-value</I> pairs arespecified, then the command modifies the given widget option(s) to have thegiven value(s); in this case the command returns an empty string.<I>Option</I> may have any of the values accepted by the creation command.Read-only options are not be modified.</DD></DL><DL><DT><A NAME="delete"><I>pathName</I> <B>delete</B></A> ?<I>arg...</I>?</DT><DD>Deletes all nodes (and children of them) in <I>arg</I>. <I>arg</I> can be a listof nodes or a list of list of nodes.To delete all the tree, do <I>$pathName delete [$pathName nodes root]</I>.</DD></DL><DL><DT><A NAME="edit"><I>pathName</I> <B>edit</B></A> <I>node</I> <I>text</I> ?<I>verifycmd</I>? ?<I>clickres</I>? ?<I>select</I>?</DT><DD>Provides a way for the user to edit in place the label of a node. This ispossible only if <I>node</I> is visible (all its parents are open).<BR>The command takes the initial text as argument and does not modify the label of theedited node, but returns an empty string if edition is canceled, or the typed textif edition is accepted.<BR>When editing, the user can cancel by pressing Escape, or accept by pressing Return.<BR><I>clickres</I> specifies what to do if the user click outside the editable area.If <I>clickres</I> is 0 (the default), the edition is canceled.If <I>clickres</I> is 1, the edition is accepted.In all other case, the edition continues.<BR>If edition is accepted and <I>modifycmd</I> is not empty, then it is called withthe new text as argument and must return 1 to accept the new text, 0 to refuse itand continue edition.<BR><I>select</I> specifies wether or not the initial text should be selected. Default is 1.</DD></DL><DL><DT><A NAME="exists"><I>pathName</I> <B>exists</B></A> <I>node</I></DT><DD>Returns whether or not <I>node</I> exists in the tree.</DD></DL><DL><DT><A NAME="index"><I>pathName</I> <B>index</B></A> <I>node</I></DT><DD>Returns the position of <I>node</I> in its parent.</DD></DL><DL><DT><A NAME="insert"><I>pathName</I> <B>insert</B></A> <I>index</I> <I>parent</I> <I>node</I> ?<I>option value...</I>?</DT><DD>Inserts a new node identified by <I>node</I> in the children list of <I>parent</I>at position <I>index</I>.<P><DL><DT><A NAME="Node-data"><B>-data</B></A></DT><DD>User data associated to the node.</DD></DL><DL><DT><A NAME="Node-drawcross"><B>-drawcross</B></A></DT><DD>Specifies how the cross used to expand or collapse the children of a nodeshould be drawn. Must be one of <B>auto</B>, <B>allways</B> or <B>never</B>.<BR>If <B>auto</B>, the cross is drawn only if the node has children.If <B>allways</B>, the cross is always drawn.If <B>never</B>, the cross is never drawn.</DD></DL><DL><DT><A NAME="Node-fill"><B>-fill</B></A></DT><DD>Specifies the foreground color of the label of the node.</DD></DL><DL><DT><A NAME="Node-font"><B>-font</B></A></DT><DD>Specifies a font for the label of the node.</DD></DL><DL><DT><A NAME="Node-image"><B>-image</B></A></DT><DD>Specifies an image to display at the left of the label of the node.<B>window</B> option override <B>image</B>.</DD></DL><DL><DT><A NAME="Node-open"><B>-open</B></A></DT><DD>Specifies wether or not the children of the node should be drawn.</DD></DL><DL><DT><A NAME="Node-text"><B>-text</B></A></DT><DD>Specifies the label of the node.</DD></DL><DL><DT><A NAME="Node-window"><B>-window</B></A></DT><DD>Specifies a pathname to display at the left of the label of the node.<B>window</B> option override <B>image</B>.</DD></DL></DD></DL><DL><DT><A NAME="itemcget"><I>pathName</I> <B>itemcget</B></A> <I>node</I> <I>option</I></DT><DD>Returns the current value of a configuration option for the item.<I>Option</I> may have any of the values accepted by the item creation command.</DD></DL><DL><DT><A NAME="itemconfigure"><I>pathName</I> <B>itemconfigure</B></A> <I>node</I> ?<I>option</I>? ?<I>value</I> <I>option</I> <I>value</I> ...?</DT><DD>This command is similar to the <B>configure</B> command, except that it applies to theoptions for an individual item, whereas <B>configure</B> applies to the options forthe widget as a whole. <B>Options</B> may have any of the values accepted by the item creation widget command. If options are specified, options are modified as indicatedin the command and the command returns an empty string. If no options are specified,returns a list describing the current options for the item.Read-only options are not be modified.</DD></DL><DL><DT><A NAME="move"><I>pathName</I> <B>move</B></A> <I>parent</I> <I>node</I> <I>index</I></DT><DD>Moves <I>node</I> to the children list of <I>parent</I> at position <I>index</I>.<I>parent</I> can not be a descendant of <I>node</I>.</DD></DL><DL><DT><A NAME="nodes"><I>pathName</I> <B>nodes</B></A> <I>node</I> ?<I>first</I>? ?<I>last</I>?</DT><DD>Returns parts of the children of <I>node</I>, following <I>first</I> and <I>last</I>.<BR>If <I>first</I> and <I>last</I> are omitted, returns the list of all children.If <I>first</I> is specified and <I>last</I> omitted, returns the child at index<I>first</I>, or an empty string if <I>first</I> refers to a non-existent element.If <I>first</I> and <I>last</I> are specified, the command returns a list whose elementsare all of the children between <I>first</I> and <I>last</I>,inclusive. Both <I>first</I> and <I>last</I> may have any of the standardforms for indices.</DD></DL><DL><DT><A NAME="opentree"><I>pathName</I> <B>opentree</B></A> <I>node</I> ?<I>recurse</I>?</DT><DD>This command open all the subtree given by <I>node</I>. Recurse through thetree starting at <I>node</I> and set <B>open</B> option to 1 depending on valueof <I>recurse</I>. Default value of <I>recurse</I> is <I>true</I>.</DD></DL><DL><DT><A NAME="parent"><I>pathName</I> <B>parent</B></A> <I>node</I></DT><DD>Returns the parent of <I>node</I>.</DD></DL><DL><DT><A NAME="reorder"><I>pathName</I> <B>reorder</B></A> <I>node</I> <I>neworder</I></DT><DD>Modifies the order of children of <I>node</I> given by <I>neworder</I>. Children of<I>node</I> that do not appear in <I>neworder</I> are no moved.</DD></DL><DL><DT><A NAME="see"><I>pathName</I> <B>see</B></A> <I>node</I></DT><DD>Arrange the scrolling area to make <I>node</I> visible.</DD></DL><DL><DT><A NAME="selection"><I>pathName</I> <B>selection</B></A> <I>cmd</I> ?<I>arg...</I>?</DT><DD>Modifies the list of selected nodes following <I>cmd</I>:<DL><DT><B>clear</B><DD>remove all nodes of the selection.<DT><B>set</B><DD>set the selection to all nodes in <I>arg</I><DT><B>add</B><DD>add all nodes of <I>arg</I> in the selection<DT><B>remove</B><DD>remove all nodes of <I>arg</I> of the selection<DT><B>get</B><DD>return the current selected nodes</DL></DD></DL><DL><DT><A NAME="visible"><I>pathName</I> <B>visible</B></A> <I>node</I></DT><DD>Returns whether or not <I>node</I> is visible (all its parents are open).</DD></DL><DL><DT><A NAME="xview"><I>pathName</I> <B>xview</B></A> ?<I>arg...</I>?</DT><DD>Standard command to enable horizontal scrolling of <I>pathName</I>.</DD></DL><DL><DT><A NAME="yview"><I>pathName</I> <B>yview</B></A> ?<I>arg...</I>?</DT><DD>Standard command to enable vertical scrolling of <I>pathName</I>.</DD></DL></BODY></HTML>

⌨️ 快捷键说明

复制代码 Ctrl + C
搜索代码 Ctrl + F
全屏模式 F11
切换主题 Ctrl + Shift + D
显示快捷键 ?
增大字号 Ctrl + =
减小字号 Ctrl + -