Sophie

Sophie

distrib > Mageia > 6 > armv5tl > by-pkgid > 346faae07f6a43f8475eca2d60a9a449 > files > 224

blt-2.5-12.mga6.armv5tl.rpm

<!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.01 Transitional//EN">
<HTML>
<HEAD><TITLE>treeview manual page - BLT Built-In Commands</TITLE><!--#include virtual="/man/maninc.html"-->
<link rel="stylesheet" href="../docs.css" type="text/css" media="all">
</HEAD>
<BODY>
<DL>
<DD><A HREF="treeview.htm#M2" NAME="L4310">NAME</A>
<DL><DD>treeview - Create and manipulate hierarchical table widgets</DD></DL>
<DD><A HREF="treeview.htm#M3" NAME="L4311">SYNOPSIS</A>
<DL>
</DL>
<DD><A HREF="treeview.htm#M4" NAME="L4312">DESCRIPTION</A>
<DD><A HREF="treeview.htm#M5" NAME="L4313">INTRODUCTION</A>
<DD><A HREF="treeview.htm#M6" NAME="L4314">TREE DATA OBJECT</A>
<DD><A HREF="treeview.htm#M7" NAME="L4315">SYNTAX</A>
<DD><A HREF="treeview.htm#M8" NAME="L4316">IDS AND TAGS</A>
<DD><A HREF="treeview.htm#M9" NAME="L4317">SPECIAL NODE IDS</A>
<DL class="special node ids">
<DD><A HREF="treeview.htm#M10" NAME="L4318"><B>active</B></A>
<DD><A HREF="treeview.htm#M11" NAME="L4319"><B>anchor</B></A>
<DD><A HREF="treeview.htm#M12" NAME="L4320"><B>bottom</B></A>
<DD><A HREF="treeview.htm#M13" NAME="L4321"><B>current</B></A>
<DD><A HREF="treeview.htm#M14" NAME="L4322"><B>down</B></A>
<DD><A HREF="treeview.htm#M15" NAME="L4323"><B>end</B></A>
<DD><A HREF="treeview.htm#M16" NAME="L4324"><B>focus</B></A>
<DD><A HREF="treeview.htm#M17" NAME="L4325"><B>last</B></A>
<DD><A HREF="treeview.htm#M18" NAME="L4326"><B>mark</B></A>
<DD><A HREF="treeview.htm#M19" NAME="L4327"><B>next</B></A>
<DD><A HREF="treeview.htm#M20" NAME="L4328"><B>nextsibling</B></A>
<DD><A HREF="treeview.htm#M21" NAME="L4329"><B>parent</B></A>
<DD><A HREF="treeview.htm#M22" NAME="L4330"><B>prev</B></A>
<DD><A HREF="treeview.htm#M23" NAME="L4331"><B>prevsibling</B></A>
<DD><A HREF="treeview.htm#M24" NAME="L4332"><B>root</B></A>
<DD><A HREF="treeview.htm#M25" NAME="L4333"><B>tail</B></A>
<DD><A HREF="treeview.htm#M26" NAME="L4334"><B>top</B></A>
<DD><A HREF="treeview.htm#M27" NAME="L4335"><B>up</B></A>
<DD><A HREF="treeview.htm#M28" NAME="L4336"><B>view.top</B></A>
<DD><A HREF="treeview.htm#M29" NAME="L4337"><B>view.bottom</B></A>
<DD><A HREF="treeview.htm#M30" NAME="L4338"><B>@</B><I>x</I><B>,</B><I>y</I></A>
<DD><A HREF="treeview.htm#M31" NAME="L4339"><B>@</B><I>ID</I><B>-&gt;</B><I>LABEL</I>-&gt;<I>LABEL</I>...</A>
</DL>
<DD><A HREF="treeview.htm#M32" NAME="L4340">DATA FIELDS</A>
<DD><A HREF="treeview.htm#M33" NAME="L4341">ENTRY BINDINGS</A>
<DD><A HREF="treeview.htm#M34" NAME="L4342">TREEVIEW OPERATIONS</A>
<DL class="treeview operations">
<DD><A HREF="treeview.htm#M35" NAME="L4343"><I>pathName </I><B>bbox</B> ?<B>-screen</B>? <I>tagOrId...</I></A>
<DL class="treeview operations">
<DD><A HREF="treeview.htm#M36" NAME="L4344"><I>x</I></A>
<DD><A HREF="treeview.htm#M37" NAME="L4345"><I>y</I></A>
<DD><A HREF="treeview.htm#M38" NAME="L4346"><I>width</I></A>
<DD><A HREF="treeview.htm#M39" NAME="L4347"><I>height</I></A>
</DL>
<DD><A HREF="treeview.htm#M40" NAME="L4348"><I>pathName </I><B>bind</B> <I>tagName</I> ?<I>sequence command</I>?</A>
<DD><A HREF="treeview.htm#M41" NAME="L4349"><I>pathName </I><B>button </B><I>operation</I> ?<I>args</I>?</A>
<DL class="treeview operations">
<DD><A HREF="treeview.htm#M42" NAME="L4350"><I>pathName </I><B>button activate</B> <I>tagOrId</I></A>
<DD><A HREF="treeview.htm#M43" NAME="L4351"><I>pathName </I><B>button bind</B> <I>tagName</I> ?<I>sequence command</I>?</A>
<DD><A HREF="treeview.htm#M44" NAME="L4352"><I>pathName </I><B>button cget</B> <I>option</I></A>
<DD><A HREF="treeview.htm#M45" NAME="L4353"><I>pathName </I><B>button configure</B> ?<I>option</I>? ?<I>value option value ...</I>?</A>
</DL>
<DD><A HREF="treeview.htm#M46" NAME="L4354"><I>pathName </I><B>cget</B> <I>option</I></A>
<DD><A HREF="treeview.htm#M47" NAME="L4355"><I>pathName </I><B>close </B>?<B>-recurse</B>? ?<B>-trees</B>? <I>tagOrId...</I></A>
<DD><A HREF="treeview.htm#M48" NAME="L4356"><I>pathName </I><B>column </B><I>operation</I> ?<I>args</I>?</A>
<DL class="treeview operations">
<DD><A HREF="treeview.htm#M49" NAME="L4357"><I>pathName </I><B>column activate</B> <I>column</I></A>
<DD><A HREF="treeview.htm#M50" NAME="L4358"><I>pathName </I><B>column bbox</B> <I>column entry</I></A>
<DD><A HREF="treeview.htm#M51" NAME="L4359"><I>pathName </I><B>column bind</B> <I>column</I> ?<I>sequence command</I>?</A>
<DD><A HREF="treeview.htm#M52" NAME="L4360"><I>pathName </I><B>column cget</B> <I>name</I> <I>option</I></A>
<DD><A HREF="treeview.htm#M53" NAME="L4361"><I>pathName </I><B>column configure</B> <I>name</I> ?<I>name</I> ...? ?<I>option</I>? ?<I>value option value </I> ...?</A>
<DD><A HREF="treeview.htm#M54" NAME="L4362"><I>pathName </I><B>column current</B></A>
<DD><A HREF="treeview.htm#M55" NAME="L4363"><I>pathName </I><B>column delete</B> <I>field</I> ?<I>field</I>...?</A>
<DD><A HREF="treeview.htm#M56" NAME="L4364"><I>pathName </I><B>column index</B> <I>index</I></A>
<DD><A HREF="treeview.htm#M57" NAME="L4365"><I>pathName </I><B>column insert</B> <I>position</I> <I>field</I>  ?<I>field</I> ...? ?<I>options</I>...?</A>
<DD><A HREF="treeview.htm#M58" NAME="L4366"><I>pathName </I><B>column invoke</B> <I>field</I></A>
<DD><A HREF="treeview.htm#M59" NAME="L4367"><I>pathName </I><B>column isset ?</B><I>startOrTag</I>? ?<I>end</I>?</A>
<DD><A HREF="treeview.htm#M60" NAME="L4368"><I>pathName </I><B>column istree </B><I>field</I></A>
<DD><A HREF="treeview.htm#M61" NAME="L4369"><I>pathName </I><B>column move </B><I>name</I> <I>dest</I></A>
<DD><A HREF="treeview.htm#M62" NAME="L4370"><I>pathName </I><B>column names ?</B><I>-visible</I>? ?<I>PATTERN</I>?</A>
<DD><A HREF="treeview.htm#M63" NAME="L4371"><I>pathName </I><B>column nearest</B> <I>x</I> ?<I>y</I>?</A>
<DD><A HREF="treeview.htm#M64" NAME="L4372"><I>pathName </I><B>column offsets</B></A>
<DD><A HREF="treeview.htm#M65" NAME="L4373"><I>pathName </I><B>column resize op ...</B></A>
<DD><A HREF="treeview.htm#M66" NAME="L4374"><I>pathName </I><B>column see</B> ?<B>-anchor</B> <I>anchor</I>? <I>field</I></A>
<DD><A HREF="treeview.htm#M67" NAME="L4375"><I>pathName </I><B>column values</B> ?<B>-visible</B>? ?<B>-default value</B>? <I>field</I> ?<I>start</I>? ?<I>end</I>?</A>
</DL>
<DD><A HREF="treeview.htm#M68" NAME="L4376"><I>pathName </I><B>configure</B> ?<I>option</I>? ?<I>value option value ...</I>?</A>
<DD><A HREF="treeview.htm#M69" NAME="L4377"><I>pathName </I><B>curselection</B></A>
<DD><A HREF="treeview.htm#M70" NAME="L4378"><I>pathName </I><B>delete </B><I>tagnode</I>...</A>
<DD><A HREF="treeview.htm#M71" NAME="L4379"><I>pathName </I><B>edit ?</B><I>-test -root</I>? <I>X Y</I></A>
<DD><A HREF="treeview.htm#M72" NAME="L4380"><I>pathName </I><B>entry </B><I>operation</I> ?<I>args</I>?</A>
<DL class="treeview operations">
<DD><A HREF="treeview.htm#M73" NAME="L4381"><I>pathName </I><B>entry activate</B> <I>tagOrId</I></A>
<DD><A HREF="treeview.htm#M74" NAME="L4382"><I>pathName </I><B>entry cget</B> <I>option</I></A>
<DD><A HREF="treeview.htm#M75" NAME="L4383"><I>pathName </I><B>entry children</B> <I>tagOrId</I>  ?<I>first</I>? ?<I>last</I>?</A>
<DD><A HREF="treeview.htm#M76" NAME="L4384"><I>pathName </I><B>entry configure</B> <I>tagnode</I> ?<I>option</I>? ?<I>value option value ...</I>?</A>
<DD><A HREF="treeview.htm#M77" NAME="L4385"><I>pathName </I><B>entry delete</B> <I>tagOrId</I> ?<I>first</I> ?<I>last</I>?</A>
<DD><A HREF="treeview.htm#M78" NAME="L4386"><I>pathName </I><B>entry depth </B><I>tagOrId</I></A>
<DD><A HREF="treeview.htm#M79" NAME="L4387"><I>pathName </I><B>entry down </B><I>tagOrId</I></A>
<DD><A HREF="treeview.htm#M80" NAME="L4388"><I>pathName </I><B>entry get</B> <I>tagOrId</I> ?<I>key</I>? ?<I>default</I>?</A>
<DD><A HREF="treeview.htm#M81" NAME="L4389"><I>pathName </I><B>entry isbefore </B><I>tagOrId1</I> <I>tagOrId2</I></A>
<DD><A HREF="treeview.htm#M82" NAME="L4390"><I>pathName </I><B>entry ishidden </B><I>tagOrId</I></A>
<DD><A HREF="treeview.htm#M83" NAME="L4391"><I>pathName </I><B>entry isopen </B><I>tagOrId</I></A>
<DD><A HREF="treeview.htm#M84" NAME="L4392"><I>pathName </I><B>entry isset </B> <I>tagOrId col</I></A>
<DD><A HREF="treeview.htm#M85" NAME="L4393"><I>pathName </I><B>entry isvisible </B><I>tagOrId</I></A>
<DD><A HREF="treeview.htm#M86" NAME="L4394"><I>pathName </I><B>entry next </B><I>tagOrId</I></A>
<DD><A HREF="treeview.htm#M87" NAME="L4395"><I>pathName </I><B>entry parent </B><I>tagOrId</I></A>
<DD><A HREF="treeview.htm#M88" NAME="L4396"><I>pathName </I><B>entry prev </B><I>tagOrId</I></A>
<DD><A HREF="treeview.htm#M89" NAME="L4397"><I>pathName </I><B>entry relabel </B><I>tagOrId newLabel</I></A>
<DD><A HREF="treeview.htm#M90" NAME="L4398"><I>pathName </I><B>entry select </B><I>tagOrId</I></A>
<DD><A HREF="treeview.htm#M91" NAME="L4399"><I>pathName </I><B>entry set </B> <I>tagOrId col</I> ?<I>value col value ...</I>?</A>
<DD><A HREF="treeview.htm#M92" NAME="L4400"><I>pathName </I><B>entry sibling ?-before</B>? <I>tagOrId</I></A>
<DD><A HREF="treeview.htm#M93" NAME="L4401"><I>pathName </I><B>entry size</B> <B>-recurse</B> <I>tagOrId</I></A>
<DD><A HREF="treeview.htm#M94" NAME="L4402"><I>pathName </I><B>entry unset </B> <I>tagOrId col</I></A>
<DD><A HREF="treeview.htm#M95" NAME="L4403"><I>pathName </I><B>entry up </B><I>tagOrId</I></A>
<DD><A HREF="treeview.htm#M96" NAME="L4404"><I>pathName </I><B>entry value </B> <I>tagOrId</I> ?<I>col</I>?</A>
</DL>
<DD><A HREF="treeview.htm#M97" NAME="L4405"><I>pathName </I><B>find </B>?<I>flags</I>? <I>first</I> <I>last</I></A>
<DL class="treeview operations">
<DD><A HREF="treeview.htm#M98" NAME="L4406"><B>-addtag NAME</B></A>
<DD><A HREF="treeview.htm#M99" NAME="L4407"><B>-command</B> <I>command</I></A>
<DD><A HREF="treeview.htm#M100" NAME="L4408"><B>-column</B><I> col</I></A>
<DD><A HREF="treeview.htm#M101" NAME="L4409"><B>-count</B></A>
<DD><A HREF="treeview.htm#M102" NAME="L4410"><B>-depth</B> <I>number</I></A>
<DD><A HREF="treeview.htm#M103" NAME="L4411"><B>-exact</B></A>
<DD><A HREF="treeview.htm#M104" NAME="L4412"><B>-exec</B><I> string</I></A>
<DL class="treeview operations">
<DD><A HREF="treeview.htm#M105" NAME="L4413"><B>%#</B></A>
<DD><A HREF="treeview.htm#M106" NAME="L4414"><B>%W</B></A>
<DD><A HREF="treeview.htm#M107" NAME="L4415"><B>%p</B></A>
<DD><A HREF="treeview.htm#M108" NAME="L4416"><B>%P</B></A>
<DD><A HREF="treeview.htm#M109" NAME="L4417"><B>%V</B></A>
<DD><A HREF="treeview.htm#M110" NAME="L4418"><B>%F</B></A>
<DD><A HREF="treeview.htm#M111" NAME="L4419"><B>%C</B></A>
<DD><A HREF="treeview.htm#M112" NAME="L4420"><B>%%</B></A>
</DL>
<DD><A HREF="treeview.htm#M113" NAME="L4421"><B>-glob</B></A>
<DD><A HREF="treeview.htm#M114" NAME="L4422"><B>-invert</B></A>
<DD><A HREF="treeview.htm#M115" NAME="L4423"><B>-isclosed</B></A>
<DD><A HREF="treeview.htm#M116" NAME="L4424"><B>-ishidden</B></A>
<DD><A HREF="treeview.htm#M117" NAME="L4425"><B>-isleaf</B></A>
<DD><A HREF="treeview.htm#M118" NAME="L4426"><B>-ismapped</B></A>
<DD><A HREF="treeview.htm#M119" NAME="L4427"><B>-isopen</B></A>
<DD><A HREF="treeview.htm#M120" NAME="L4428"><B>-istree</B></A>
<DD><A HREF="treeview.htm#M121" NAME="L4429"><B>-limit</B><I> number</I></A>
<DD><A HREF="treeview.htm#M122" NAME="L4430"><B>-maxdepth</B></A>
<DD><A HREF="treeview.htm#M123" NAME="L4431"><B>-mindepth</B></A>
<DD><A HREF="treeview.htm#M124" NAME="L4432"><B>-name</B><I> pattern</I></A>
<DD><A HREF="treeview.htm#M125" NAME="L4433"><B>-nocase</B></A>
<DD><A HREF="treeview.htm#M126" NAME="L4434"><B>-notop</B></A>
<DD><A HREF="treeview.htm#M127" NAME="L4435"><B>-regexp</B></A>
<DD><A HREF="treeview.htm#M128" NAME="L4436"><B>-reldepth</B></A>
<DD><A HREF="treeview.htm#M129" NAME="L4437"><B>-return</B><I> col</I></A>
<DD><A HREF="treeview.htm#M130" NAME="L4438"><B>-top </B><I>node</I></A>
<DD><A HREF="treeview.htm#M131" NAME="L4439"><B>-useformat</B></A>
<DD><A HREF="treeview.htm#M132" NAME="L4440"><B>-uselabel</B></A>
<DD><A HREF="treeview.htm#M133" NAME="L4441"><B>-usepath</B></A>
<DD><A HREF="treeview.htm#M134" NAME="L4442"><B>-userow</B></A>
<DD><A HREF="treeview.htm#M135" NAME="L4443"><B>-visible</B></A>
<DD><A HREF="treeview.htm#M136" NAME="L4444"><B>-withouttag NAME</B></A>
<DD><A HREF="treeview.htm#M137" NAME="L4445"><B>-withtag NAME</B></A>
<DD><A HREF="treeview.htm#M138" NAME="L4446"><B>-var </B><I>variable</I></A>
<DD><A HREF="treeview.htm#M139" NAME="L4447"><B>-option</B> <I>name value</I></A>
<DD><A HREF="treeview.htm#M140" NAME="L4448"><B>--</B></A>
</DL>
<DD><A HREF="treeview.htm#M141" NAME="L4449"><I>pathName </I><B>focus </B>?<I>tagOrId</I>?</A>
<DD><A HREF="treeview.htm#M142" NAME="L4450"><I>pathName </I><B>get</B> ?<B>-full</B>? ?<B>-labels</B>? <I>tagnode</I> <I>tagnode</I>...</A>
<DD><A HREF="treeview.htm#M143" NAME="L4451"><I>pathName </I><B>hide </B>?<B>flags</B>? <I>tagOrId</I>...</A>
<DL class="treeview operations">
<DD><A HREF="treeview.htm#M144" NAME="L4452"><B>-column</B><I> col</I></A>
<DD><A HREF="treeview.htm#M145" NAME="L4453"><B>-depth</B> <I>number</I></A>
<DD><A HREF="treeview.htm#M146" NAME="L4454"><B>-exact</B></A>
<DD><A HREF="treeview.htm#M147" NAME="L4455"><B>-glob</B></A>
<DD><A HREF="treeview.htm#M148" NAME="L4456"><B>-invert</B></A>
<DD><A HREF="treeview.htm#M149" NAME="L4457"><B>-maxdepth</B></A>
<DD><A HREF="treeview.htm#M150" NAME="L4458"><B>-mindepth</B></A>
<DD><A HREF="treeview.htm#M151" NAME="L4459"><B>-name</B><I> pattern</I></A>
<DD><A HREF="treeview.htm#M152" NAME="L4460"><B>-nocase</B></A>
<DD><A HREF="treeview.htm#M153" NAME="L4461"><B>-option name value</B></A>
<DD><A HREF="treeview.htm#M154" NAME="L4462"><B>-regexp</B></A>
<DD><A HREF="treeview.htm#M155" NAME="L4463"><B>-uselabel</B></A>
<DD><A HREF="treeview.htm#M156" NAME="L4464"><B>-usepath</B></A>
<DD><A HREF="treeview.htm#M157" NAME="L4465"><B>-withouttag NAME</B></A>
<DD><A HREF="treeview.htm#M158" NAME="L4466"><B>-withtag NAME</B></A>
<DD><A HREF="treeview.htm#M159" NAME="L4467"><B>--</B></A>
</DL>
<DD><A HREF="treeview.htm#M160" NAME="L4468"><I>pathName </I><B>index </B>?<B>-at</B> <I>tagOrId</I>? ?<B>-path</B>? ?<B>-quiet</B>? <I>string</I></A>
<DD><A HREF="treeview.htm#M161" NAME="L4469"><I>pathName </I><B>insert</B> ?<B>-node </B><I>num</I>? ?<B>-at </B><I>tagOrId</I>? ?<B>-styles </B><I>styleslist</I>? ?<B>-tags </B><I>tagslist</I>? <I>position</I> ?<I>path</I>? ?<I>options...</I>? ?<I>path</I>? ?<I>options...</I>?</A>
<DD><A HREF="treeview.htm#M162" NAME="L4470"><I>pathName </I><B>move </B><I>tagnode</I> <I>how</I> <I>destId</I></A>
<DL class="treeview operations">
<DD><A HREF="treeview.htm#M163" NAME="L4471"><B>before</B></A>
<DD><A HREF="treeview.htm#M164" NAME="L4472"><B>after</B></A>
<DD><A HREF="treeview.htm#M165" NAME="L4473"><B>into</B></A>
</DL>
<DD><A HREF="treeview.htm#M166" NAME="L4474"><I>pathName </I><B>nearest</B>  ?<B>-root</B>?  ?<B>-strict</B>? <I>x y</I> ?<I>varName</I>?</A>
<DD><A HREF="treeview.htm#M167" NAME="L4475"><I>pathName </I><B>open </B>?<B>-recurse</B>? ?<B>-trees</B>? <I>tagnode...</I></A>
<DD><A HREF="treeview.htm#M168" NAME="L4476"><I>pathName </I><B>range</B> ?<B>-open</B>? <I>first last</I></A>
<DD><A HREF="treeview.htm#M169" NAME="L4477"><I>pathName </I><B>scan</B> <I>option args</I></A>
<DL class="treeview operations">
<DD><A HREF="treeview.htm#M170" NAME="L4478"><I>pathName </I><B>scan mark </B><I>x y</I></A>
<DD><A HREF="treeview.htm#M171" NAME="L4479"><I>pathName </I><B>scan dragto </B><I>x y</I>.</A>
</DL>
<DD><A HREF="treeview.htm#M172" NAME="L4480"><I>pathName </I><B>see</B> ?<B>-anchor </B><I>anchor</I>? <I>tagOrId</I></A>
<DD><A HREF="treeview.htm#M173" NAME="L4481"><I>pathName </I><B>selection </B><I>option arg</I></A>
<DL class="treeview operations">
<DD><A HREF="treeview.htm#M174" NAME="L4482"><I>pathName </I><B>selection anchor ?</B><I>tagOrId</I>? ?<I>column</I>?</A>
<DD><A HREF="treeview.htm#M175" NAME="L4483"><I>pathName </I><B>selection cells</B></A>
<DD><A HREF="treeview.htm#M176" NAME="L4484"><I>pathName </I><B>selection clear </B><I>first </I>?<I>last</I>? ?<I>column</I>?</A>
<DD><A HREF="treeview.htm#M177" NAME="L4485"><I>pathName </I><B>selection clearall</B></A>
<DD><A HREF="treeview.htm#M178" NAME="L4486"><I>pathName </I><B>selection mark </B><I>tagOrId</I> ?<I>column</I>?</A>
<DD><A HREF="treeview.htm#M179" NAME="L4487"><I>pathName </I><B>selection includes </B><I>tagOrId</I> ?<I>column</I>?</A>
<DD><A HREF="treeview.htm#M180" NAME="L4488"><I>pathName </I><B>selection present</B></A>
<DD><A HREF="treeview.htm#M181" NAME="L4489"><I>pathName </I><B>selection set </B><I>first </I>?<I>last</I>? ?<I>column</I>?</A>
<DD><A HREF="treeview.htm#M182" NAME="L4490"><I>pathName </I><B>selection toggle </B><I>first </I>?<I>last</I>? ?<I>column</I>?</A>
</DL>
<DD><A HREF="treeview.htm#M183" NAME="L4491"><I>pathName </I><B>show </B>?<B>flags</B>? <I>tagOrId</I>...</A>
<DD><A HREF="treeview.htm#M184" NAME="L4492"><I>pathName </I><B>sort</B> ?<I>operation</I>? <I>args...</I></A>
<DL class="treeview operations">
<DD><A HREF="treeview.htm#M185" NAME="L4493"><I>pathName </I><B>sort auto</B> ?<I>boolean</I></A>
<DD><A HREF="treeview.htm#M186" NAME="L4494"><I>pathName </I><B>sort cget</B> <I>option</I></A>
<DD><A HREF="treeview.htm#M187" NAME="L4495"><I>pathName </I><B>sort configure</B> ?<I>option</I>? ?<I>value option value ...</I>?</A>
<DL class="treeview operations">
<DD><A HREF="treeview.htm#M188" NAME="L4496"><B>-column</B><I> string</I></A>
<DD><A HREF="treeview.htm#M189" NAME="L4497"><B>-command</B><I> string</I></A>
<DD><A HREF="treeview.htm#M190" NAME="L4498"><B>-decreasing</B><I> boolean</I></A>
<DD><A HREF="treeview.htm#M191" NAME="L4499"><B>-mode</B><I> string</I></A>
<DD><A HREF="treeview.htm#M192" NAME="L4500"><B>-setflat</B><I> bool</I></A>
<DL class="treeview operations">
<DD><A HREF="treeview.htm#M193" NAME="L4501"><B>ascii</B></A>
<DD><A HREF="treeview.htm#M194" NAME="L4502"><B>dictionary</B></A>
<DD><A HREF="treeview.htm#M195" NAME="L4503"><B>integer</B></A>
<DD><A HREF="treeview.htm#M196" NAME="L4504"><B>real</B></A>
<DD><A HREF="treeview.htm#M197" NAME="L4505"><B>command</B></A>
</DL>
</DL>
<DD><A HREF="treeview.htm#M198" NAME="L4506"><I>pathName </I><B>sort once</B> ?<I>flags</I>? <I>tagOrId...</I></A>
<DL class="treeview operations">
<DD><A HREF="treeview.htm#M199" NAME="L4507"><B>-recurse</B></A>
</DL>
</DL>
<DD><A HREF="treeview.htm#M200" NAME="L4508"><I>pathName </I><B>style </B><I>operation</I> ?<I>args</I>?</A>
<DL class="treeview operations">
<DD><A HREF="treeview.htm#M201" NAME="L4509"><I>pathName </I><B>style activate</B> <I>entry column</I></A>
<DD><A HREF="treeview.htm#M202" NAME="L4510"><I>pathName </I><B>style cget</B> <I>stylename option</I></A>
<DD><A HREF="treeview.htm#M203" NAME="L4511"><I>pathName </I><B>style configure</B> ?<I>stylename option</I>? ?<I>value option value ...</I>?</A>
<DD><A HREF="treeview.htm#M204" NAME="L4512"><I>pathName </I><B>style create</B> <I>...</I>?</A>
<DL class="treeview operations">
<DD><A HREF="treeview.htm#M205" NAME="L4513"><I>pathName </I><B>style create barbox</B> <I>stylename</I> ?<I>option value option value ...</I>?</A>
<DD><A HREF="treeview.htm#M206" NAME="L4514"><I>pathName </I><B>style create checkbox</B> <I>stylename</I> ?<I>option value option value ...</I>?</A>
<DD><A HREF="treeview.htm#M207" NAME="L4515"><I>pathName </I><B>style create combobox</B> <I>stylename</I> ?<I>option value option value ...</I>?</A>
<DD><A HREF="treeview.htm#M208" NAME="L4516"><I>pathName </I><B>style create textbox</B> <I>stylename</I> ?<I>option value option value ...</I>?</A>
<DD><A HREF="treeview.htm#M209" NAME="L4517"><I>pathName </I><B>style create windowbox</B> ?<I>stylename</I>? ?<I>option value option value ...</I>?</A>
</DL>
<DD><A HREF="treeview.htm#M210" NAME="L4518"><I>pathName </I><B>style find</B> <I>stylename ?column? ?node? ...</I></A>
<DD><A HREF="treeview.htm#M211" NAME="L4519"><I>pathName </I><B>style forget</B> <I>stylename ...</I></A>
<DD><A HREF="treeview.htm#M212" NAME="L4520"><I>pathName </I><B>style get</B> <I>column tagorid</I></A>
<DD><A HREF="treeview.htm#M213" NAME="L4521"><I>pathName </I><B>style highlight</B> <I>stylename ?on|off?</I></A>
<DD><A HREF="treeview.htm#M214" NAME="L4522"><I>pathName </I><B>style names</B></A>
<DD><A HREF="treeview.htm#M215" NAME="L4523"><I>pathName </I><B>style set</B> <I>stylename column node ...</I></A>
<DD><A HREF="treeview.htm#M216" NAME="L4524"><I>pathName </I><B>style slaves</B> ?<B>-col </B><I>col</I>? ?<B>-id </B><I>node</I>? ?<B>-style </B><I>styleName</I>? ?<B>-visible </B><I>bool</I>? ?<B>-info </B><I>path</I>?</A>
</DL>
<DD><A HREF="treeview.htm#M217" NAME="L4525"><I>pathName </I><B>tag </B><I>operation args</I></A>
<DL class="treeview operations">
<DD><A HREF="treeview.htm#M218" NAME="L4526"><I>pathName</I> <B>tag add</B> <I>string</I> ?<I>id</I>...?</A>
<DD><A HREF="treeview.htm#M219" NAME="L4527"><I>pathName</I> <B>tag delete</B> <I>string</I> <I>tagnode</I>...</A>
<DD><A HREF="treeview.htm#M220" NAME="L4528"><I>treeName</I> <B>tag exists</B> <I>string</I> ?<I>id</I>?</A>
<DD><A HREF="treeview.htm#M221" NAME="L4529"><I>pathName</I> <B>tag forget</B> <I>string</I></A>
<DD><A HREF="treeview.htm#M222" NAME="L4530"><I>pathName</I> <B>tag names</B> ?<I>id</I>?</A>
<DD><A HREF="treeview.htm#M223" NAME="L4531"><I>pathName</I> <B>tag nodes</B>  <I>name</I> ?<I>name</I> ...?</A>
</DL>
<DD><A HREF="treeview.htm#M224" NAME="L4532"><I>pathName </I><B>toggle </B><I>tagnode</I></A>
<DD><A HREF="treeview.htm#M225" NAME="L4533"><I>pathName </I><B>xview </B><I>args</I></A>
<DL class="treeview operations">
<DD><A HREF="treeview.htm#M226" NAME="L4534"><I>pathName </I><B>xview</B></A>
<DD><A HREF="treeview.htm#M227" NAME="L4535"><I>pathName </I><B>xview</B> <I>tagOrId</I></A>
<DD><A HREF="treeview.htm#M228" NAME="L4536"><I>pathName </I><B>xview moveto</B><I> fraction</I></A>
<DD><A HREF="treeview.htm#M229" NAME="L4537"><I>pathName </I><B>xview scroll </B><I>number what</I></A>
</DL>
<DD><A HREF="treeview.htm#M230" NAME="L4538"><I>pathName </I><B>yview </B><I>?args</I>?</A>
<DL class="treeview operations">
<DD><A HREF="treeview.htm#M231" NAME="L4539"><I>pathName </I><B>yview</B></A>
<DD><A HREF="treeview.htm#M232" NAME="L4540"><I>pathName </I><B>yview</B> <I>tagOrId</I></A>
<DD><A HREF="treeview.htm#M233" NAME="L4541"><I>pathName </I><B>yview moveto</B><I> fraction</I></A>
<DD><A HREF="treeview.htm#M234" NAME="L4542"><I>pathName </I><B>yview scroll </B><I>number what</I></A>
</DL>
</DL>
<DD><A HREF="treeview.htm#M235" NAME="L4543">TREEVIEW EDITING</A>
<DD><A HREF="treeview.htm#M236" NAME="L4544">TREEVIEW OPTIONS</A>
<DL class="treeview options">
<DD><A HREF="treeview.htm#M237" NAME="L4545"><B>-activeicons </B><I>images</I></A>
<DD><A HREF="treeview.htm#M238" NAME="L4546"><B>-activeleaficons </B><I>images</I></A>
<DD><A HREF="treeview.htm#M239" NAME="L4547"><B>-allowduplicates </B><I>boolean</I></A>
<DD><A HREF="treeview.htm#M240" NAME="L4548"><B>-altstyle </B><I>stylename</I></A>
<DD><A HREF="treeview.htm#M241" NAME="L4549"><B>-autocreate </B><I>boolean</I></A>
<DD><A HREF="treeview.htm#M242" NAME="L4550"><B>-background </B><I>color</I></A>
<DD><A HREF="treeview.htm#M243" NAME="L4551"><B>-borderwidth </B><I>pixels</I></A>
<DD><A HREF="treeview.htm#M244" NAME="L4552"><B>-button </B><I>string</I></A>
<DD><A HREF="treeview.htm#M245" NAME="L4553"><B>-closecommand </B><I>string</I></A>
<DL class="treeview options">
<DD><A HREF="treeview.htm#M246" NAME="L4554"><B>%W</B></A>
<DD><A HREF="treeview.htm#M247" NAME="L4555"><B>%p</B></A>
<DD><A HREF="treeview.htm#M248" NAME="L4556"><B>%P</B></A>
<DD><A HREF="treeview.htm#M249" NAME="L4557"><B>%#</B></A>
<DD><A HREF="treeview.htm#M250" NAME="L4558"><B>%%</B></A>
</DL>
<DD><A HREF="treeview.htm#M251" NAME="L4559"><B>-columnshowhighlight </B><I>bool</I></A>
<DD><A HREF="treeview.htm#M252" NAME="L4560"><B>-cursor </B><I>cursor</I></A>
<DD><A HREF="treeview.htm#M253" NAME="L4561"><B>-dashes </B><I>number</I></A>
<DD><A HREF="treeview.htm#M254" NAME="L4562"><B>-emptystyle </B><I>stylename</I></A>
<DD><A HREF="treeview.htm#M255" NAME="L4563"><B>-entryshowhighlight </B><I>bool</I></A>
<DD><A HREF="treeview.htm#M256" NAME="L4564"><B>-exportselection </B><I>boolean</I></A>
<DD><A HREF="treeview.htm#M257" NAME="L4565"><B>-fillnull </B><I>boolean</I></A>
<DD><A HREF="treeview.htm#M258" NAME="L4566"><B>-flat </B><I>boolean</I></A>
<DD><A HREF="treeview.htm#M259" NAME="L4567"><B>-focusdashes </B><I>dashList</I></A>
<DD><A HREF="treeview.htm#M260" NAME="L4568"><B>-focusforeground </B><I>color</I></A>
<DD><A HREF="treeview.htm#M261" NAME="L4569"><B>-focusheight </B><I>value</I></A>
<DD><A HREF="treeview.htm#M262" NAME="L4570"><B>-font </B><I>fontName</I></A>
<DD><A HREF="treeview.htm#M263" NAME="L4571"><B>-foreground </B><I>color</I></A>
<DD><A HREF="treeview.htm#M264" NAME="L4572"><B>-height </B><I>pixels</I></A>
<DD><A HREF="treeview.htm#M265" NAME="L4573"><B>-hidedataicons </B><I>boolean</I></A>
<DD><A HREF="treeview.htm#M266" NAME="L4574"><B>-hidedatatext </B><I>boolean</I></A>
<DD><A HREF="treeview.htm#M267" NAME="L4575"><B>-hideicons </B><I>boolean</I></A>
<DD><A HREF="treeview.htm#M268" NAME="L4576"><B>-hideleaves </B><I>boolean</I></A>
<DD><A HREF="treeview.htm#M269" NAME="L4577"><B>-hideroot </B><I>boolean</I></A>
<DD><A HREF="treeview.htm#M270" NAME="L4578"><B>-highlightbackground  </B><I>color</I></A>
<DD><A HREF="treeview.htm#M271" NAME="L4579"><B>-highlightcolor </B><I>color</I></A>
<DD><A HREF="treeview.htm#M272" NAME="L4580"><B>-highlightthickness </B><I>pixels</I></A>
<DD><A HREF="treeview.htm#M273" NAME="L4581"><B>-icons </B><I>images</I></A>
<DD><A HREF="treeview.htm#M274" NAME="L4582"><B>-imagecmd </B><I>scriptcmd</I></A>
<DD><A HREF="treeview.htm#M275" NAME="L4583"><B>-inlinedata </B><I>bool</I></A>
<DD><A HREF="treeview.htm#M276" NAME="L4584"><B>-insertfirst</B><I>num</I></A>
<DD><A HREF="treeview.htm#M277" NAME="L4585"><B>-leaficons </B><I>images</I></A>
<DD><A HREF="treeview.htm#M278" NAME="L4586"><B>-levelpad </B><I>pixels</I></A>
<DD><A HREF="treeview.htm#M279" NAME="L4587"><B>-levelstyles </B><I>stylenames</I></A>
<DD><A HREF="treeview.htm#M280" NAME="L4588"><B>-linecolor </B><I>color</I></A>
<DD><A HREF="treeview.htm#M281" NAME="L4589"><B>-linespacing </B><I>pixels</I></A>
<DD><A HREF="treeview.htm#M282" NAME="L4590"><B>-linewidth </B><I>pixels</I></A>
<DD><A HREF="treeview.htm#M283" NAME="L4591"><B>-minheight </B><I>pixels</I></A>
<DD><A HREF="treeview.htm#M284" NAME="L4592"><B>-nextauto</B><I>num</I></A>
<DD><A HREF="treeview.htm#M285" NAME="L4593"><B>-nextsubauto</B><I>num</I></A>
<DD><A HREF="treeview.htm#M286" NAME="L4594"><B>-newtags </B><I>boolean</I></A>
<DD><A HREF="treeview.htm#M287" NAME="L4595"><B>-noautocloseleaf </B><I>boolean</I></A>
<DD><A HREF="treeview.htm#M288" NAME="L4596"><B>-nofocusselectbackground </B><I>color</I></A>
<DD><A HREF="treeview.htm#M289" NAME="L4597"><B>-nofocusselectforeground </B><I>color</I></A>
<DD><A HREF="treeview.htm#M290" NAME="L4598"><B>-openanchor </B><I>string</I></A>
<DD><A HREF="treeview.htm#M291" NAME="L4599"><B>-opencommand </B><I>string</I></A>
<DL class="treeview options">
<DD><A HREF="treeview.htm#M292" NAME="L4600"><B>%W</B></A>
<DD><A HREF="treeview.htm#M293" NAME="L4601"><B>%p</B></A>
<DD><A HREF="treeview.htm#M294" NAME="L4602"><B>%P</B></A>
<DD><A HREF="treeview.htm#M295" NAME="L4603"><B>%#</B></A>
<DD><A HREF="treeview.htm#M296" NAME="L4604"><B>%%</B></A>
</DL>
<DD><A HREF="treeview.htm#M297" NAME="L4605"><B>-relief </B><I>relief</I></A>
<DD><A HREF="treeview.htm#M298" NAME="L4606"><B>-resizecursor </B><I>string</I></A>
<DD><A HREF="treeview.htm#M299" NAME="L4607"><B>-rootnode </B><I>num</I></A>
<DD><A HREF="treeview.htm#M300" NAME="L4608"><B>-scrollmode </B><I>mode</I></A>
<DL class="treeview options">
<DD><A HREF="treeview.htm#M301" NAME="L4609"><B>listbox</B></A>
<DD><A HREF="treeview.htm#M302" NAME="L4610"><B>hierbox</B></A>
<DD><A HREF="treeview.htm#M303" NAME="L4611"><B>canvas</B></A>
</DL>
<DD><A HREF="treeview.htm#M304" NAME="L4612"><B>-scrolltile </B><I>bool</I></A>
<DD><A HREF="treeview.htm#M305" NAME="L4613"><B>-selectbackground </B><I>color</I></A>
<DD><A HREF="treeview.htm#M306" NAME="L4614"><B>-selectborderwidth </B><I>pixels</I></A>
<DD><A HREF="treeview.htm#M307" NAME="L4615"><B>-selectcommand </B><I>string</I></A>
<DD><A HREF="treeview.htm#M308" NAME="L4616"><B>-selectforeground</B> <I>color</I>&#92;fB</A>
<DD><A HREF="treeview.htm#M309" NAME="L4617"><B>-selectmode </B><I>mode</I></A>
<DD><A HREF="treeview.htm#M310" NAME="L4618"><B>-selectrelief </B><I>relief</I></A>
<DD><A HREF="treeview.htm#M311" NAME="L4619"><B>-selecttile </B><I>image</I></A>
<DD><A HREF="treeview.htm#M312" NAME="L4620"><B>-separator </B><I>string</I></A>
<DD><A HREF="treeview.htm#M313" NAME="L4621"><B>-showfull </B><I>boolean</I></A>
<DD><A HREF="treeview.htm#M314" NAME="L4622"><B>-showtitles </B><I>boolean</I></A>
<DD><A HREF="treeview.htm#M315" NAME="L4623"><B>-sortselection </B><I>boolean</I></A>
<DD><A HREF="treeview.htm#M316" NAME="L4624"><B>-stylecommand </B><I>string</I></A>
<DD><A HREF="treeview.htm#M317" NAME="L4625"><B>-substyle </B><I>stylename</I></A>
<DD><A HREF="treeview.htm#M318" NAME="L4626"><B>-takefocus</B> <I>focus</I></A>
<DD><A HREF="treeview.htm#M319" NAME="L4627"><B>-tile </B><I>image</I></A>
<DD><A HREF="treeview.htm#M320" NAME="L4628"><B>-titlefont </B><I>font</I></A>
<DD><A HREF="treeview.htm#M321" NAME="L4629"><B>-titlepad </B><I>N</I></A>
<DD><A HREF="treeview.htm#M322" NAME="L4630"><B>-tree </B><I>tree</I></A>
<DD><A HREF="treeview.htm#M323" NAME="L4631"><B>-trim </B><I>string</I></A>
<DD><A HREF="treeview.htm#M324" NAME="L4632"><B>-underline </B><I>height</I></A>
<DD><A HREF="treeview.htm#M325" NAME="L4633"><B>-width </B><I>pixels</I></A>
<DD><A HREF="treeview.htm#M326" NAME="L4634"><B>-xscrollcommand </B><I>string</I></A>
<DD><A HREF="treeview.htm#M327" NAME="L4635"><B>-xscrollincrement</B> <I>pixels</I></A>
<DD><A HREF="treeview.htm#M328" NAME="L4636"><B>-yscrollcommand </B><I>string</I></A>
<DD><A HREF="treeview.htm#M329" NAME="L4637"><B>-yscrollincrement</B> <I>pixels</I></A>
</DL>
<DD><A HREF="treeview.htm#M330" NAME="L4638">ENTRY OPTIONS</A>
<DL class="entry options">
<DD><A HREF="treeview.htm#M331" NAME="L4639"><B>-activeicons </B><I>images</I></A>
<DD><A HREF="treeview.htm#M332" NAME="L4640"><B>-bindtags </B><I>tagList</I></A>
<DD><A HREF="treeview.htm#M333" NAME="L4641"><B>-button </B><I>string</I></A>
<DD><A HREF="treeview.htm#M334" NAME="L4642"><B>-closecommand </B><I>string</I></A>
<DL class="entry options">
<DD><A HREF="treeview.htm#M335" NAME="L4643"><B>%W</B></A>
<DD><A HREF="treeview.htm#M336" NAME="L4644"><B>%p</B></A>
<DD><A HREF="treeview.htm#M337" NAME="L4645"><B>%P</B></A>
<DD><A HREF="treeview.htm#M338" NAME="L4646"><B>%#</B></A>
<DD><A HREF="treeview.htm#M339" NAME="L4647"><B>%%</B></A>
</DL>
<DD><A HREF="treeview.htm#M340" NAME="L4648"><B>-data </B><I>list</I></A>
<DD><A HREF="treeview.htm#M341" NAME="L4649"><B>-font </B><I>fontName</I></A>
<DD><A HREF="treeview.htm#M342" NAME="L4650"><B>-forcetree </B><I>bool</I></A>
<DD><A HREF="treeview.htm#M343" NAME="L4651"><B>-foreground </B><I>color</I></A>
<DD><A HREF="treeview.htm#M344" NAME="L4652"><B>-height </B><I>num</I></A>
<DD><A HREF="treeview.htm#M345" NAME="L4653"><B>-hide </B><I>bool</I></A>
<DD><A HREF="treeview.htm#M346" NAME="L4654"><B>-icons </B><I>images</I></A>
<DD><A HREF="treeview.htm#M347" NAME="L4655"><B>-label </B><I>string</I></A>
<DD><A HREF="treeview.htm#M348" NAME="L4656"><B>-opencommand </B><I>string</I></A>
<DL class="entry options">
<DD><A HREF="treeview.htm#M349" NAME="L4657"><B>%W</B></A>
<DD><A HREF="treeview.htm#M350" NAME="L4658"><B>%p</B></A>
<DD><A HREF="treeview.htm#M351" NAME="L4659"><B>%P</B></A>
<DD><A HREF="treeview.htm#M352" NAME="L4660"><B>%#</B></A>
<DD><A HREF="treeview.htm#M353" NAME="L4661"><B>%%</B></A>
</DL>
<DD><A HREF="treeview.htm#M354" NAME="L4662"><B>-shadow </B><I>color</I></A>
<DD><A HREF="treeview.htm#M355" NAME="L4663"><B>-state </B><I>value</I></A>
<DD><A HREF="treeview.htm#M356" NAME="L4664"><B>-style </B><I>stylename</I></A>
<DD><A HREF="treeview.htm#M357" NAME="L4665"><B>-sublabel </B><I>string</I></A>
<DD><A HREF="treeview.htm#M358" NAME="L4666"><B>-underline </B><I>num</I></A>
<DD><A HREF="treeview.htm#M359" NAME="L4667"><B>-userdata </B><I>list</I></A>
</DL>
<DD><A HREF="treeview.htm#M360" NAME="L4668">BUTTON OPTIONS</A>
<DL class="button options">
<DD><A HREF="treeview.htm#M361" NAME="L4669"><B>-activebackground </B><I>color</I></A>
<DD><A HREF="treeview.htm#M362" NAME="L4670"><B>-activeforeground </B><I>color</I></A>
<DD><A HREF="treeview.htm#M363" NAME="L4671"><B>-background </B><I>color</I></A>
<DD><A HREF="treeview.htm#M364" NAME="L4672"><B>-borderwidth </B><I>pixels</I></A>
<DD><A HREF="treeview.htm#M365" NAME="L4673"><B>-closerelief </B><I>relief</I></A>
<DD><A HREF="treeview.htm#M366" NAME="L4674"><B>-cursor </B><I>cursor</I></A>
<DD><A HREF="treeview.htm#M367" NAME="L4675"><B>-foreground </B><I>color</I></A>
<DD><A HREF="treeview.htm#M368" NAME="L4676"><B>-images </B><I>images</I></A>
<DD><A HREF="treeview.htm#M369" NAME="L4677"><B>-openrelief </B><I>relief</I></A>
<DD><A HREF="treeview.htm#M370" NAME="L4678"><B>-size </B><I>pixels</I></A>
</DL>
<DD><A HREF="treeview.htm#M371" NAME="L4679">STYLE OPTIONS</A>
<DL class="style options">
<DD><A HREF="treeview.htm#M372" NAME="L4680"><B>-activebackground </B><I>color</I></A>
<DD><A HREF="treeview.htm#M373" NAME="L4681"><B>-activeforeground </B><I>color</I></A>
<DD><A HREF="treeview.htm#M374" NAME="L4682"><B>-background </B><I>color</I></A>
<DD><A HREF="treeview.htm#M375" NAME="L4683"><B>-cursor </B><I>cursorname</I></A>
<DD><A HREF="treeview.htm#M376" NAME="L4684"><B>-font </B><I>fontName</I></A>
<DD><A HREF="treeview.htm#M377" NAME="L4685"><B>-foreground </B><I>color</I></A>
<DD><A HREF="treeview.htm#M378" NAME="L4686"><B>-gap </B><I>N</I></A>
<DD><A HREF="treeview.htm#M379" NAME="L4687"><B>-hide </B><I>bool</I></A>
<DD><A HREF="treeview.htm#M380" NAME="L4688"><B>-highlightbackground </B><I>color</I></A>
<DD><A HREF="treeview.htm#M381" NAME="L4689"><B>-highlightforeground </B><I>color</I></A>
<DD><A HREF="treeview.htm#M382" NAME="L4690"><B>-icon </B><I>name</I></A>
<DD><A HREF="treeview.htm#M383" NAME="L4691"><B>-priority</B> <I>N</I></A>
<DD><A HREF="treeview.htm#M384" NAME="L4692"><B>-shadow </B><I>shadow</I></A>
<DD><A HREF="treeview.htm#M385" NAME="L4693"><B>-tile </B><I>img</I></A>
<DD><A HREF="treeview.htm#M386" NAME="L4694">The following additional configuration options are available for textbox:</A>
<DD><A HREF="treeview.htm#M387" NAME="L4695"><B>-formatcmd </B><I>scriptcmd</I></A>
<DD><A HREF="treeview.htm#M388" NAME="L4696"><B>-iconside </B><I>N</I></A>
<DD><A HREF="treeview.htm#M389" NAME="L4697"><B>-side </B><I>N</I></A>
<DD><A HREF="treeview.htm#M390" NAME="L4698">The following additional configuration options are available for combobox:</A>
<DD><A HREF="treeview.htm#M391" NAME="L4699"><B>-borderwidth </B><I>pixel</I></A>
<DD><A HREF="treeview.htm#M392" NAME="L4700"><B>-buttonborderwidth </B><I>pixel</I></A>
<DD><A HREF="treeview.htm#M393" NAME="L4701"><B>-buttonrelief </B><I>relief</I></A>
<DD><A HREF="treeview.htm#M394" NAME="L4702"><B>-choicecmd </B><I>cmd</I></A>
<DD><A HREF="treeview.htm#M395" NAME="L4703"><B>-choices </B><I>lst</I></A>
<DD><A HREF="treeview.htm#M396" NAME="L4704">The following additional configuration options are available for checkbox:</A>
<DD><A HREF="treeview.htm#M397" NAME="L4705"><B>-boxcolor </B><I>color</I></A>
<DD><A HREF="treeview.htm#M398" NAME="L4706"><B>-boxsize </B><I>num</I></A>
<DD><A HREF="treeview.htm#M399" NAME="L4707"><B>-checkcolor </B><I>color</I></A>
<DD><A HREF="treeview.htm#M400" NAME="L4708"><B>-fillcolor </B><I>color</I></A>
<DD><A HREF="treeview.htm#M401" NAME="L4709"><B>-linewidth </B><I>num</I></A>
<DD><A HREF="treeview.htm#M402" NAME="L4710"><B>-offvalue </B><I>val</I></A>
<DD><A HREF="treeview.htm#M403" NAME="L4711"><B>-onvalue </B><I>val</I></A>
<DD><A HREF="treeview.htm#M404" NAME="L4712"><B>-showvalue </B><I>bool</I></A>
<DD><A HREF="treeview.htm#M405" NAME="L4713">The following additional configuration options are available for barbox:</A>
<DD><A HREF="treeview.htm#M406" NAME="L4714"><B>-barbg </B><I>color</I></A>
<DD><A HREF="treeview.htm#M407" NAME="L4715"><B>-boxcolor </B><I>color</I></A>
<DD><A HREF="treeview.htm#M408" NAME="L4716"><B>-barfg </B><I>color</I></A>
<DD><A HREF="treeview.htm#M409" NAME="L4717"><B>-barheight </B><I>num</I></A>
<DD><A HREF="treeview.htm#M410" NAME="L4718"><B>-barwidth </B><I>num</I></A>
<DD><A HREF="treeview.htm#M411" NAME="L4719"><B>-filltile </B><I>tile</I></A>
<DD><A HREF="treeview.htm#M412" NAME="L4720"><B>-formatcmd </B><I>scriptcmd</I></A>
<DD><A HREF="treeview.htm#M413" NAME="L4721"><B>-linewidth </B><I>num</I></A>
<DD><A HREF="treeview.htm#M414" NAME="L4722"><B>-maxvalue </B><I>val</I></A>
<DD><A HREF="treeview.htm#M415" NAME="L4723"><B>-minvalue </B><I>val</I></A>
<DD><A HREF="treeview.htm#M416" NAME="L4724"><B>-showvalue </B><I>bool</I></A>
<DD><A HREF="treeview.htm#M417" NAME="L4725">Only the following configuration options are available with windowbox:</A>
<DD><A HREF="treeview.htm#M418" NAME="L4726"><B>-minheight </B><I>num</I></A>
<DD><A HREF="treeview.htm#M419" NAME="L4727"><B>-minwidth </B><I>num</I></A>
<DD><A HREF="treeview.htm#M420" NAME="L4728"><B>-windowcmd </B><I>string</I></A>
<DL class="style options">
<DD><A HREF="treeview.htm#M421" NAME="L4729"><B>%W</B></A>
<DD><A HREF="treeview.htm#M422" NAME="L4730"><B>%p</B></A>
<DD><A HREF="treeview.htm#M423" NAME="L4731"><B>%P</B></A>
<DD><A HREF="treeview.htm#M424" NAME="L4732"><B>%#</B></A>
<DD><A HREF="treeview.htm#M425" NAME="L4733"><B>%C</B></A>
<DD><A HREF="treeview.htm#M426" NAME="L4734"><B>%%</B></A>
</DL>
</DL>
<DD><A HREF="treeview.htm#M427" NAME="L4735">COLUMN OPTIONS</A>
<DL class="column options">
<DD><A HREF="treeview.htm#M428" NAME="L4736"><B>-activetitlebackground </B><I>color</I></A>
<DD><A HREF="treeview.htm#M429" NAME="L4737"><B>-activetitleforeground </B><I>color</I></A>
<DD><A HREF="treeview.htm#M430" NAME="L4738"><B>-autowidth </B><I>value</I></A>
<DD><A HREF="treeview.htm#M431" NAME="L4739"><B>-background </B><I>color</I></A>
<DD><A HREF="treeview.htm#M432" NAME="L4740"><B>-bindtags </B><I>string</I></A>
<DD><A HREF="treeview.htm#M433" NAME="L4741"><B>-borderwidth </B><I>pixels</I></A>
<DD><A HREF="treeview.htm#M434" NAME="L4742"><B>-colorpattern </B><I>patcolors</I></A>
<DD><A HREF="treeview.htm#M435" NAME="L4743"><B>-colorregexp </B><I>patcolors</I></A>
<DD><A HREF="treeview.htm#M436" NAME="L4744"><B>-command </B><I>string</I></A>
<DL class="column options">
<DD><A HREF="treeview.htm#M437" NAME="L4745"><B>%W</B></A>
<DD><A HREF="treeview.htm#M438" NAME="L4746"><B>%C</B></A>
<DD><A HREF="treeview.htm#M439" NAME="L4747"><B>%%</B></A>
</DL>
<DD><A HREF="treeview.htm#M440" NAME="L4748"><B>-edit </B><I>num</I></A>
<DD><A HREF="treeview.htm#M441" NAME="L4749"><B>-editopts </B><I>values</I></A>
<DL class="column options">
<DD><A HREF="treeview.htm#M442" NAME="L4750"><I>-auto bool</I></A>
<DD><A HREF="treeview.htm#M443" NAME="L4751"><I>-editcmd cmd</I></A>
<DD><A HREF="treeview.htm#M444" NAME="L4752"><I>-embed bool</I></A>
<DD><A HREF="treeview.htm#M445" NAME="L4753"><I>-endcmd cmd</I></A>
<DD><A HREF="treeview.htm#M446" NAME="L4754"><I>-leafs bool</I></A>
<DD><A HREF="treeview.htm#M447" NAME="L4755"><I>-nottnull bool</I></A>
<DD><A HREF="treeview.htm#M448" NAME="L4756"><I>-opts values</I></A>
<DD><A HREF="treeview.htm#M449" NAME="L4757"><I>-readonly bool</I></A>
<DD><A HREF="treeview.htm#M450" NAME="L4758"><I>-sel bool</I></A>
<DD><A HREF="treeview.htm#M451" NAME="L4759"><I>-startcmd cmd</I></A>
<DD><A HREF="treeview.htm#M452" NAME="L4760"><I>-titles bool</I></A>
<DD><A HREF="treeview.htm#M453" NAME="L4761"><I>-widget wid</I></A>
<DD><A HREF="treeview.htm#M454" NAME="L4762"><I>-withtag tag</I></A>
<DD><A HREF="treeview.htm#M455" NAME="L4763"><I>-withouttag tag</I></A>
<DD><A HREF="treeview.htm#M456" NAME="L4764"><I>-wrap value</I></A>
</DL>
<DD><A HREF="treeview.htm#M457" NAME="L4765"><B>-fillcmd </B><I>scriptcmd</I></A>
<DD><A HREF="treeview.htm#M458" NAME="L4766"><B>-hide </B><I>boolean</I></A>
<DD><A HREF="treeview.htm#M459" NAME="L4767"><B>-justify </B><I>justify</I></A>
<DD><A HREF="treeview.htm#M460" NAME="L4768"><B>-max </B><I>size</I></A>
<DD><A HREF="treeview.htm#M461" NAME="L4769"><B>-min </B><I>size</I></A>
<DD><A HREF="treeview.htm#M462" NAME="L4770"><B>-pad </B><I>pad</I></A>
<DD><A HREF="treeview.htm#M463" NAME="L4771"><B>-relief </B><I>relief</I></A>
<DD><A HREF="treeview.htm#M464" NAME="L4772"><B>-ruledashes </B><I>value</I></A>
<DD><A HREF="treeview.htm#M465" NAME="L4773"><B>-scrolltile </B><I>bool</I></A>
<DD><A HREF="treeview.htm#M466" NAME="L4774"><B>-sortcommand </B><I>script</I></A>
<DD><A HREF="treeview.htm#M467" NAME="L4775"><B>-sortmode </B><I>mode</I></A>
<DD><A HREF="treeview.htm#M468" NAME="L4776"><B>-state </B><I>state</I></A>
<DD><A HREF="treeview.htm#M469" NAME="L4777"><B>-style </B><I>stylename</I></A>
<DD><A HREF="treeview.htm#M470" NAME="L4778"><B>-tile </B><I>image</I></A>
<DD><A HREF="treeview.htm#M471" NAME="L4779"><B>-title </B><I>string</I></A>
<DD><A HREF="treeview.htm#M472" NAME="L4780"><B>-titlearrow </B><I>value</I></A>
<DD><A HREF="treeview.htm#M473" NAME="L4781"><B>-titlebackground </B><I>color</I></A>
<DD><A HREF="treeview.htm#M474" NAME="L4782"><B>-titleborderwidth </B><I>size</I></A>
<DD><A HREF="treeview.htm#M475" NAME="L4783"><B>-titlefont </B><I>font</I></A>
<DD><A HREF="treeview.htm#M476" NAME="L4784"><B>-titlejustify </B><I>just</I></A>
<DD><A HREF="treeview.htm#M477" NAME="L4785"><B>-titleforeground </B><I>color</I></A>
<DD><A HREF="treeview.htm#M478" NAME="L4786"><B>-titlerelief </B><I>relief</I></A>
<DD><A HREF="treeview.htm#M479" NAME="L4787"><B>-titleshadow </B><I>color</I></A>
<DD><A HREF="treeview.htm#M480" NAME="L4788"><B>-titlestyle </B><I>style</I></A>
<DD><A HREF="treeview.htm#M481" NAME="L4789"><B>-width </B><I>num</I></A>
<DD><A HREF="treeview.htm#M482" NAME="L4790"><B>-underline </B><I>num</I></A>
<DD><A HREF="treeview.htm#M483" NAME="L4791"><B>-validatecmd </B><I>command</I></A>
</DL>
<DL class="column options">
<DD><A HREF="treeview.htm#M484" NAME="L4792"><B>-weight </B><I>float</I></A>
<DD><A HREF="treeview.htm#M485" NAME="L4793"><B>-width </B><I>pixels</I></A>
</DL>
<DD><A HREF="treeview.htm#M486" NAME="L4794">EMBEDDED WINDOWS</A>
<DD><A HREF="treeview.htm#M487" NAME="L4795">OLD TEXT EDITING OPTIONS</A>
<DL class="old text editing options">
<DD><A HREF="treeview.htm#M488" NAME="L4796"><B>-background </B><I>color</I></A>
<DD><A HREF="treeview.htm#M489" NAME="L4797"><B>-borderwidth </B><I>pixels</I></A>
<DD><A HREF="treeview.htm#M490" NAME="L4798"><B>-exportselection </B><I>boolean</I></A>
<DD><A HREF="treeview.htm#M491" NAME="L4799"><B>-relief </B><I>relief</I></A>
<DD><A HREF="treeview.htm#M492" NAME="L4800"><B>-selectbackground </B><I>color</I></A>
<DD><A HREF="treeview.htm#M493" NAME="L4801"><B>-selectborderwidth </B><I>pixels</I></A>
<DD><A HREF="treeview.htm#M494" NAME="L4802"><B>-selectforeground </B><I>color</I></A>
<DD><A HREF="treeview.htm#M495" NAME="L4803"><B>-selectrelief </B><I>relief</I></A>
</DL>
<DD><A HREF="treeview.htm#M496" NAME="L4804">DEFAULT BINDINGS</A>
<DL class="default bindings">
</DL>
<DD><A HREF="treeview.htm#M497" NAME="L4805">WIDGET BINDINGS</A>
<DL class="widget bindings">
<DD><A HREF="treeview.htm#M498" NAME="L4806"><B>&lt;ButtonPress-2&gt;</B></A>
<DD><A HREF="treeview.htm#M499" NAME="L4807"><B>&lt;B2-Motion&gt;</B></A>
<DD><A HREF="treeview.htm#M500" NAME="L4808"><B>&lt;ButtonRelease-2&gt;</B></A>
<DD><A HREF="treeview.htm#M501" NAME="L4809"><B>&lt;B1-Leave&gt;</B></A>
<DD><A HREF="treeview.htm#M502" NAME="L4810"><B>&lt;B1-Enter&gt;</B></A>
<DD><A HREF="treeview.htm#M503" NAME="L4811"><B>&lt;KeyPress-Up&gt;</B></A>
<DD><A HREF="treeview.htm#M504" NAME="L4812"><B>&lt;KeyPress-Down&gt;</B></A>
<DD><A HREF="treeview.htm#M505" NAME="L4813"><B>&lt;Shift-KeyPress-Up&gt;</B></A>
<DD><A HREF="treeview.htm#M506" NAME="L4814"><B>&lt;Shift-KeyPress-Down&gt;</B></A>
<DD><A HREF="treeview.htm#M507" NAME="L4815"><B>&lt;KeyPress-Prior&gt;</B></A>
<DD><A HREF="treeview.htm#M508" NAME="L4816"><B>&lt;KeyPress-Next&gt;</B></A>
<DD><A HREF="treeview.htm#M509" NAME="L4817"><B>&lt;KeyPress-Left&gt;</B></A>
<DD><A HREF="treeview.htm#M510" NAME="L4818"><B>&lt;KeyPress-Right&gt;</B></A>
<DD><A HREF="treeview.htm#M511" NAME="L4819"><B>&lt;KeyPress-space&gt;</B></A>
<DD><A HREF="treeview.htm#M512" NAME="L4820"><B>&lt;KeyRelease-space&gt;</B></A>
<DD><A HREF="treeview.htm#M513" NAME="L4821"><B>&lt;KeyPress-Return&gt;</B></A>
<DD><A HREF="treeview.htm#M514" NAME="L4822"><B>&lt;KeyRelease-Return&gt;</B></A>
<DD><A HREF="treeview.htm#M515" NAME="L4823"><B>&lt;KeyPress&gt;</B></A>
<DD><A HREF="treeview.htm#M516" NAME="L4824"><B>&lt;KeyPress-Home&gt;</B></A>
<DD><A HREF="treeview.htm#M517" NAME="L4825"><B>&lt;KeyPress-End&gt;</B></A>
<DD><A HREF="treeview.htm#M518" NAME="L4826"><B>&lt;Control-a&gt;</B></A>
<DD><A HREF="treeview.htm#M519" NAME="L4827"><B>&lt;Control-o&gt;</B></A>
<DD><A HREF="treeview.htm#M520" NAME="L4828"><B>&lt;Control-Shift-O&gt;</B></A>
<DD><A HREF="treeview.htm#M521" NAME="L4829"><B>&lt;Double-ButtonRelease-1&gt;</B></A>
<DD><A HREF="treeview.htm#M522" NAME="L4830"><B>&lt;Alt-Double-ButtonRelease-1&gt;</B></A>
<DD><A HREF="treeview.htm#M523" NAME="L4831"><B>&lt;Control-KeyPress-minus&gt;</B></A>
<DD><A HREF="treeview.htm#M524" NAME="L4832"><B>&lt;KeyPress-F1&gt;</B></A>
<DD><A HREF="treeview.htm#M525" NAME="L4833"><B>&lt;KeyPress-F2&gt;</B></A>
<DD><A HREF="treeview.htm#M526" NAME="L4834"><B>&lt;KeyPress-F3&gt;</B></A>
<DD><A HREF="treeview.htm#M527" NAME="L4835"><B>&lt;KeyPress-F4&gt;</B></A>
<DD><A HREF="treeview.htm#M528" NAME="L4836"><B>&lt;Control-Shift-O&gt;</B></A>
<DD><A HREF="treeview.htm#M529" NAME="L4837"><B>&lt;Control-Shift-C&gt;</B></A>
</DL>
<DD><A HREF="treeview.htm#M530" NAME="L4838">BUTTON BINDINGS</A>
<DL class="button bindings">
<DD><A HREF="treeview.htm#M531" NAME="L4839"><B>&lt;Enter&gt;</B></A>
<DD><A HREF="treeview.htm#M532" NAME="L4840"><B>&lt;Leave&gt;</B></A>
<DD><A HREF="treeview.htm#M533" NAME="L4841"><B>&lt;ButtonRelease-1&gt;</B></A>
</DL>
<DD><A HREF="treeview.htm#M534" NAME="L4842">ENTRY BINDINGS</A>
<DL class="entry bindings">
<DD><A HREF="treeview.htm#M535" NAME="L4843"><B>&lt;Enter&gt;</B></A>
<DD><A HREF="treeview.htm#M536" NAME="L4844"><B>&lt;Leave&gt;</B></A>
<DD><A HREF="treeview.htm#M537" NAME="L4845"><B>&lt;ButtonPress-1&gt;</B></A>
<DD><A HREF="treeview.htm#M538" NAME="L4846"><B>&lt;Double-ButtonPress-1&gt;</B></A>
<DD><A HREF="treeview.htm#M539" NAME="L4847"><B>&lt;B1-Motion&gt;</B></A>
<DD><A HREF="treeview.htm#M540" NAME="L4848"><B>&lt;ButtonRelease-1&gt;</B></A>
<DD><A HREF="treeview.htm#M541" NAME="L4849"><B>&lt;Shift-ButtonPress-1&gt;</B></A>
<DD><A HREF="treeview.htm#M542" NAME="L4850"><B>&lt;Shift-Double-ButtonPress-1&gt;</B></A>
<DD><A HREF="treeview.htm#M543" NAME="L4851"><B>&lt;Shift-B1-Motion&gt;</B></A>
<DD><A HREF="treeview.htm#M544" NAME="L4852"><B>&lt;Shift-ButtonRelease-1&gt;</B></A>
<DD><A HREF="treeview.htm#M545" NAME="L4853"><B>&lt;Control-ButtonPress-1&gt;</B></A>
<DD><A HREF="treeview.htm#M546" NAME="L4854"><B>&lt;Control-Double-ButtonPress-1&gt;</B></A>
<DD><A HREF="treeview.htm#M547" NAME="L4855"><B>&lt;Control-B1-Motion&gt;</B></A>
<DD><A HREF="treeview.htm#M548" NAME="L4856"><B>&lt;Control-ButtonRelease-1&gt;</B></A>
<DD><A HREF="treeview.htm#M549" NAME="L4857"><B>&lt;Control-Shift-ButtonPress-1&gt;</B></A>
<DD><A HREF="treeview.htm#M550" NAME="L4858"><B>&lt;Control-Shift-Double-ButtonPress-1&gt;</B></A>
<DD><A HREF="treeview.htm#M551" NAME="L4859"><B>&lt;Control-Shift-B1-Motion&gt;</B></A>
</DL>
<DD><A HREF="treeview.htm#M552" NAME="L4860">COLUMN BINDINGS</A>
<DL class="column bindings">
<DD><A HREF="treeview.htm#M553" NAME="L4861"><B>&lt;Enter&gt;</B></A>
<DD><A HREF="treeview.htm#M554" NAME="L4862"><B>&lt;Leave&gt;</B></A>
<DD><A HREF="treeview.htm#M555" NAME="L4863"><B>&lt;ButtonRelease-1&gt;</B></A>
</DL>
<DD><A HREF="treeview.htm#M556" NAME="L4864">COLUMN RULE BINDINGS</A>
<DL class="column rule bindings">
<DD><A HREF="treeview.htm#M557" NAME="L4865"><B>&lt;Enter&gt;</B></A>
<DD><A HREF="treeview.htm#M558" NAME="L4866"><B>&lt;Leave&gt;</B></A>
<DD><A HREF="treeview.htm#M559" NAME="L4867"><B>&lt;ButtonPress-1&gt;</B></A>
<DD><A HREF="treeview.htm#M560" NAME="L4868"><B>&lt;B1-Motion&gt;</B></A>
<DD><A HREF="treeview.htm#M561" NAME="L4869"><B>&lt;ButtonRelease-1&gt;</B></A>
</DL>
<DD><A HREF="treeview.htm#M562" NAME="L4870">QUICKSTART</A>
<DD><A HREF="treeview.htm#M563" NAME="L4871">EXAMPLE</A>
<DD><A HREF="treeview.htm#M564" NAME="L4872">OLD TREEVIEW EDITS</A>
<DL class="old treeview edits">
<DD><A HREF="treeview.htm#M565" NAME="L4873">When editing the subwidget .edit is available.</A>
<DD><A HREF="treeview.htm#M566" NAME="L4874"><I>pathName.</I><B>edit </B><I>operation</I> ?<I>args</I>?</A>
<DL class="old treeview edits">
<DD><A HREF="treeview.htm#M567" NAME="L4875"><I>pathName.</I><B>edit apply</B></A>
<DD><A HREF="treeview.htm#M568" NAME="L4876"><I>pathName.</I><B>edit cancel</B></A>
<DD><A HREF="treeview.htm#M569" NAME="L4877"><I>pathName.</I><B>edit cget</B><I> value</I></A>
<DD><A HREF="treeview.htm#M570" NAME="L4878"><I>pathName.</I><B>edit configure</B> ?<I>option value</I>?</A>
</DL>
<DD><A HREF="treeview.htm#M571" NAME="L4879"><I>pathName.</I><B>edit delete</B><I> first last</I></A>
<DD><A HREF="treeview.htm#M572" NAME="L4880"><I>pathName.</I><B>edit get</B> ?<I>-root</I>? <I>x y</I></A>
<DD><A HREF="treeview.htm#M573" NAME="L4881"><I>pathName.</I><B>edit icursor</B><I> index</I></A>
<DD><A HREF="treeview.htm#M574" NAME="L4882"><I>pathName.</I><B>edit index</B><I> index</I></A>
<DD><A HREF="treeview.htm#M575" NAME="L4883"><I>pathName.</I><B>edit insert</B><I> index string</I></A>
<DD><A HREF="treeview.htm#M576" NAME="L4884"><I>pathName.</I><B>edit selection</B><I> args</I></A>
<DL class="old treeview edits">
<DD><A HREF="treeview.htm#M577" NAME="L4885"><I>pathName.</I><B>edit selection adjust</B><I> index</I></A>
<DD><A HREF="treeview.htm#M578" NAME="L4886"><I>pathName.</I><B>edit selection clear</B></A>
<DD><A HREF="treeview.htm#M579" NAME="L4887"><I>pathName.</I><B>edit selection from</B><I> index</I></A>
<DD><A HREF="treeview.htm#M580" NAME="L4888"><I>pathName.</I><B>edit selection present</B></A>
<DD><A HREF="treeview.htm#M581" NAME="L4889"><I>pathName.</I><B>edit selection range</B><I> start end</I></A>
<DD><A HREF="treeview.htm#M582" NAME="L4890"><I>pathName.</I><B>edit selection to</B><I> index</I></A>
</DL>
</DL>
<DD><A HREF="treeview.htm#M583" NAME="L4891">NOTES</A>
<DD><A HREF="treeview.htm#M584" NAME="L4892">KEYWORDS</A>
</DL>
<H3><A NAME="M2">NAME</A></H3>
treeview - Create and manipulate hierarchical table widgets
<H3><A NAME="M3">SYNOPSIS</A></H3>
<B>treeview</B> <I>pathName </I>?<I>options</I>?<BR>
<H3><A NAME="M4">DESCRIPTION</A></H3>
The <B>treeview</B> widget displays a <B><A HREF="../TclCmd/tree.htm">tree</A></B> of data and  provides
data sharing (via <I>tree data objects</I>) and the ability to tag
nodes.
<H3><A NAME="M5">INTRODUCTION</A></H3>
The <B>treeview</B> widget is used to display hierarchical data.  Data is
represented as nodes in a general-ordered tree.  Each node may have
sub-nodes and these nodes can in turn has their own children.
<P>
A node is displayed as a row entry in the widget.  Each entry has a
text label and icon.  When a node has children, its entry is drawn
with a small button to the left of the label.  Clicking the mouse over
this button opens or closes the node.  When a node is <I>open</I>, its
children are exposed.  When it is <I>closed</I>, the children and their
descedants are hidden.  The button is normally a <B>+</B> or
<B>-</B> symbol (ala Windows Explorer), but can be replaced with a
pair of Tk images (open and closed images).
<P>
If the node has data associated with it, they can be displayed in
columns running vertically on either side the tree.
Data may be set using an entries <B>-data</B> option,the <B>entry set</B>
subcommand, or via the <B><A HREF="../TclCmd/tree.htm">tree</A></B> data object.
You can control
the color, font, etc of each entry.  Any entry label or data field can
be edited in-place.
<H3><A NAME="M6">TREE DATA OBJECT</A></H3>
The tree is not stored inside the widget but in a tree data object
(see the <B><A HREF="../TclCmd/tree.htm">tree</A></B> command for a further explanation).  Tree data
objects can be shared among different clients, such as a
<B>treeview</B> widget or the <B><A HREF="../TclCmd/tree.htm">tree</A></B> command.  You can walk the
tree and manage its data with the <B><A HREF="../TclCmd/tree.htm">tree</A></B> command tree, while
displaying it with the <B>treeview</B> widget.  Whenever the tree is
updated, the <B>treeview</B> widget is automatically redrawn.
<P>
By default, the <B>treeview</B> widget creates its own internal tree object
and this initially contains just a root node.  But if you wish
to share a tree, you can
created one with the <B><A HREF="../TclCmd/tree.htm">tree</A></B> command and set it via the <B>-tree</B>
configuration option.  <B>Treeview</B> widgets can share this tree
object, and even display a sub-node as the root of the tree.
<P>
A tree object has both a Tcl and C API.  You can insert or delete
nodes using <B>treeview</B> widget or <B><A HREF="../TclCmd/tree.htm">tree</A></B> command operations,
but also from C code.  For example, you can load the tree from your C
code while still managing and displaying the tree from Tcl. The widget
is automatically notified whenever the tree is modified via C or Tcl.
<H3><A NAME="M7">SYNTAX</A></H3>
<dl><dd><table border="0"><tr><td><p style="font-size:12px;padding-left:.5em;padding-right:.5em;"><B>treeview </B><I>pathName </I>?<I>option value</I>?...</table></dl>
The <B>treeview</B> command creates a new window <I>pathName</I> and
makes it into a <B>treeview</B> widget.  At the time this command is
invoked, there must not exist a window named <I>pathName</I>, but
<I>pathName</I>'s parent must exist.  Additional options may be
specified on the command line or in the option database to configure
aspects of the widget such as its colors and font.  See the
<B>configure</B> operation below for the exact details about what
<I>option</I> and <I>value</I> pairs are valid.
<P>
If successful, <B>treeview</B> returns the path name of the widget.  It
also creates a new Tcl command by the same name.  You can use this
command to invoke various operations that query or modify the widget.
The general form is:
<dl><dd><table border="0"><tr><td><p style="font-size:12px;padding-left:.5em;padding-right:.5em;"><I>pathName operation</I> ?<I>arg</I>?...</table></dl>
Both <I>operation</I> and its arguments determine the exact behavior of
the command.  The operations available are described in the
section.
<H3><A NAME="M8">IDS AND TAGS</A></H3>
Nodes can be inserted into a tree using the <B>treeview</B> widget 
<PRE>blt::treeview .t
set node [.t insert end root &quot;one&quot;]</PRE>
or <B><A HREF="../TclCmd/tree.htm">tree</A></B> command. 
<PRE>set tree [blt::tree create]
set node [$tree insert root &quot;one&quot;]</PRE>
In both cases, a number identifying the node is returned (the value of
<B>$node</B>).  This serial number or <I>id</I> uniquely identifies
the node.  Please note that you can't infer a location or position of
a node from its id.  The only exception is that the root node is
always id <B>0</B>. Since nodes may have the same labels or be moved
within the tree, ids provide an convenient way to identify nodes.  If
a tree is shared, the ids will be the same regardless if you are using
by the <B>treeview</B> widget or the <B><A HREF="../TclCmd/tree.htm">tree</A></B> command.  Ids are
recycled when the node deleted.
<P>
A node may also have any number of <I>tags</I> associated with it.  A
tag is just a string of characters, and it may take any form except
that of an integer.  For example, &quot;<B>x123</B>&quot; is valid, but
&quot;<B>123</B>&quot; isn't.  The same tag may be associated with many
different nodes.  This is typically done to associate a group of
nodes.  Many operations in the <B>treeview</B> widget take either node
ids or tag names as arguments.  Using a tag says to apply the operation
to all nodes with that tag.
<P>
The tag <B>all</B> is implicitly associated with every node in
the tree.  It may be used to invoke operations on all the nodes in the
tree. 
<P>
Commands that take a <I>tagnode</I>
will also accept a list of zero or more integer node numbers.
A node-list must contain only integers,
and the list can not have any leading spaces.
Node lists can simplify the use of iterating commands.
Tags and taglist are more widely used in tree than in treeview.
<P>
Tags may be shared, just like trees, between clients.  For example,
you can use the tags created by the <B><A HREF="../TclCmd/tree.htm">tree</A></B> command with
<B>treeview</B> widgets.
<H3><A NAME="M9">SPECIAL NODE IDS</A></H3>
There are also several special non-numeric ids.  Special ids differ
from tags in that they are always translated to their numeric
equivalent.  They also take precedence over tags.  For example, you
can't use a tag name that is a special id.  These ids are specific to
the <B>treeview</B> widget.
<P>
<DL class="special node ids">
<DT><A NAME="M10"><B>active</B></A><DD>
The node where the mouse pointer is currently located.
When a node is active, it is drawn using its active icon 
(see the <B>-activeicon</B> option).
The <B>active</B> id is changed automatically by moving the mouse
pointer over another node or by using the <B>entry activate</B>
operation. Note that there can be only one active node at a time.
<P><DT><A NAME="M11"><B>anchor</B></A><DD>
The node representing the fixed end of the current selection.  
The anchor is set by the <B><A HREF="../TkCmd/selection.htm">selection anchor</A></B> operation.
<P><DT><A NAME="M12"><B>bottom</B></A><DD>
The last viewable node.
<P><DT><A NAME="M13"><B>current</B></A><DD>
The node where the mouse pointer is currently located.
But unlike <B>active</B>, this id changes while the
selection is dragged.  It is used to determine the
current node during button drags.
<P><DT><A NAME="M14"><B>down</B></A><DD>
The next open node from the current focus. The <B>down</B> of
the last open node is the same.
<P><DT><A NAME="M15"><B>end</B></A><DD>
The last node at depth 1 in tree.  
<P><DT><A NAME="M16"><B>focus</B></A><DD>
The node that currently has focus.  When a node has focus,
it receives key events.  To indicate focus, the node
is drawn with a dotted line around its label.  You can change the 
focus using the <B><A HREF="../TkCmd/focus.htm">focus</A></B> operation.
<P><DT><A NAME="M17"><B>last</B></A><DD>
Same as <B>tail</B>.
<P><DT><A NAME="M18"><B>mark</B></A><DD>
The node representing the non-fixed end of the current selection.  
The mark is set by the <B><A HREF="../TkCmd/selection.htm">selection mark</A></B> operation.
<P><DT><A NAME="M19"><B>next</B></A><DD>
The next open node from the current focus.  But unlike <B>down</B>,
when the focus is on last open node, <B><A HREF="../TclCmd/next.htm">next</A></B> wraps around to the 
root node.
<P><DT><A NAME="M20"><B>nextsibling</B></A><DD>
The next sibling from the node with the current focus.  If the node
is already the last sibling then it is the <B>nextsibling</B>.
<P><DT><A NAME="M21"><B>parent</B></A><DD>
The parent of the node with the current focus. The <B>parent</B>
of the root is also the root.
<P><DT><A NAME="M22"><B>prev</B></A><DD>
The last open node from the current focus. But unlike <B>up</B>,
when the focus is at root, <B>last</B> wraps around to the last
open node in the tree.
<P><DT><A NAME="M23"><B>prevsibling</B></A><DD>
The previous sibling from the node with the current focus.  If the node
is already the first sibling then it is the <B>prevsibling</B>.
<P><DT><A NAME="M24"><B>root</B></A><DD>
The root node. You can also use id <B>0</B> to indicate
the root.
<P><DT><A NAME="M25"><B>tail</B></A><DD>
The last node in the tree, viewable or not.
<P><DT><A NAME="M26"><B>top</B></A><DD>
The first node.
<P><DT><A NAME="M27"><B>up</B></A><DD>
The last open node (in depth-first order) from the current focus. The
<B>up</B> of the root node (i.e. the root has focus) is also the root.
<P><DT><A NAME="M28"><B>view.top</B></A><DD>
First node that's current visible in the widget.
<P><DT><A NAME="M29"><B>view.bottom</B></A><DD>
Last node that's current visible in the widget.
<P><DT><A NAME="M30"><B>@</B><I>x</I><B>,</B><I>y</I></A><DD>
Indicates the node that covers the point in the treeview window
specified by <I>x</I> and <I>y</I> (in pixel coordinates).  If no
part of the entryd covers that point, then the closest node to that
point is used.
<P><DT><A NAME="M31"><B>@</B><I>ID</I><B>-&gt;</B><I>LABEL</I>-&gt;<I>LABEL</I>...</A><DD>
Lookup via node labels, eg. <I>0-&gt;Main-&gt;Users</I>.
Quotes can be used around labels that use reserved words or contain
spaces, eg. <I>0-&gt;&quot;Main&quot;-&gt;'User Groups'</I>.
See the <B><A HREF="../TclCmd/tree.htm">tree</A></B> man page for more details.
<P></DL>
<P>
A node may be specified as an id or tag. If the specifier is an
integer then it is assumed to refer to the single node with that id.
If the specifier is not an integer, it's checked to see if it's a
special id (such as focus).  Otherwise, it's assumed to be tag.  Some
operations only operate on a single node at a time; if a tag refers to
more than one node, then an error is generated.
<H3><A NAME="M32">DATA FIELDS</A></H3>
A node in the tree can have <I>data field</I>.  A data field is a
name-value pair, used to represent arbitrary data in the node.  Nodes
can contain different fields (they aren't required to contain the same
fields).  You can optionally display these fields in the
<B>treeview</B> widget in columns running on either side of the
displayed tree.  A node's value for the field is drawn in the column
along side its node in the hierarchy.  Any node that doesn't have a
specific field is left blank.  Columns can be interactively resized,
hidden, or, moved.
<H3><A NAME="M33">ENTRY BINDINGS</A></H3>
You can bind Tcl commands to be invoked when events occur on nodes
(much like Tk canvas items).  You can bind a node using its id or
its <I>bindtags</I>.  Bindtags are simply names that associate a
binding with one or more nodes.  There is a built-in tag <B>all</B>
that all node entries automatically have.
<H3><A NAME="M34">TREEVIEW OPERATIONS</A></H3>
The <B>treeview</B> operations are the invoked by specifying
the widget's pathname, the operation, and any arguments that pertain 
to that operation.  The general form is:
<P>
<PRE><I>pathName operation </I>?<I>arg arg ...</I>?</PRE>
<P>
<I>Operation</I> and the <I>arg</I>s determine the exact behavior of the
command.  The following operation are available for <B>treeview</B> widgets:
<P>
<DL class="treeview operations">
<DT><A NAME="M35"><I>pathName </I><B>bbox</B> ?<B>-screen</B>? <I>tagOrId...</I></A><DD>
Returns a list of 4 numbers, representing a bounding box of around
the specified entries. The entries is given by one or more <I>tagOrId</I> 
arguments.  
If the <B>-screen</B> flag is given, then the x-y coordinates
of the bounding box are returned as screen coordinates, not 
virtual coordinates. Virtual coordinates start from <B>0</B> from the
root node and include the title.
If the <B>-world</B> flag is given, then the y coordinate
the title height is added in.
The returned list contains the following values.
<P>
<DL class="treeview operations">
<DT><A NAME="M36"><I>x</I></A><DD>
X-coordinate of the upper-left corner of the bounding box.
<P><DT><A NAME="M37"><I>y</I></A><DD>
Y-coordinate of the upper-left corner of the bounding box.
<P><DT><A NAME="M38"><I>width</I></A><DD>
Width of the bounding box.
<P><DT><A NAME="M39"><I>height</I></A><DD>
Height of the bounding box.
<P></DL>
<P><DT><A NAME="M40"><I>pathName </I><B>bind</B> <I>tagName</I> ?<I>sequence command</I>?</A><DD>
Associates <I>command</I> with <I>tagName</I> such that whenever the
event sequence given by <I>sequence</I> occurs for a node with this
tag, <I>command</I> will be invoked.  The syntax is similar to the 
<B><A HREF="../TkCmd/bind.htm">bind</A></B> command except that it operates on <B>treeview</B> entries, 
rather than widgets.
The <I>tagName</I> can be an entry or tag, or predefined tags such
as <B>all</B>, <B><A HREF="../TkCmd/entry.htm">Entry</A></B> or <B><A HREF="../TkCmd/button.htm">Button</A></B>.
See the <B><A HREF="../TkCmd/bind.htm">bind</A></B> manual entry for
complete details on <I>sequence</I> and the substitutions performed on 
<I>command</I> before invoking it.  
<P>
If all arguments are specified then a new binding is created, replacing 
any existing binding for the same <I>sequence</I> and <I>tagName</I>.
If the first character of <I>command</I> is <B>+</B> then <I>command</I> 
augments an existing binding rather than replacing it. 
If no <I>command</I> argument is provided then the command currently
associated with <I>tagName</I> and <I>sequence</I> (it's an error occurs 
if there's no such binding) is returned.  If both <I>command</I> and 
<I>sequence</I> are missing then a list of all the event sequences for 
which bindings have been defined for <I>tagName</I>. 
<P><DT><A NAME="M41"><I>pathName </I><B>button </B><I>operation</I> ?<I>args</I>?</A><DD>
This command is used to control the button selectors within a 
<B>treeview</B> widget.  
It has several forms, depending on <I>operation</I>:
<P>
<DL class="treeview operations">
<DT><A NAME="M42"><I>pathName </I><B>button activate</B> <I>tagOrId</I></A><DD>
Designates the node given by <I>tagOrId</I> as active.  
When a node is active it's entry is drawn using its active icon 
(see the <B>-activeicon</B> option). 
Note that there can be only one active entry at a time.
The special id <B>active</B> indicates the currently active node.
<P><DT><A NAME="M43"><I>pathName </I><B>button bind</B> <I>tagName</I> ?<I>sequence command</I>?</A><DD>
Associates <I>command</I> with <I>tagName</I> such that whenever the
event sequence given by <I>sequence</I> occurs for an button of a
node entry with this tag, <I>command</I> will be invoked.  The syntax is
similar to the <B><A HREF="../TkCmd/bind.htm">bind</A></B> command except that it operates on
<B>treeview</B> buttons, rather than widgets. See the <B><A HREF="../TkCmd/bind.htm">bind</A></B>
manual entry for complete details on <I>sequence</I> and the
substitutions performed on <I>command</I> before invoking it.
<P>
If all arguments are specified then a new binding is created, replacing 
any existing binding for the same <I>sequence</I> and <I>tagName</I>.
If the first character of <I>command</I> is <B>+</B> then <I>command</I> 
augments an existing binding rather than replacing it. 
If no <I>command</I> argument is provided then the command currently
associated with <I>tagName</I> and <I>sequence</I> (it's an error occurs 
if there's no such binding) is returned.  If both <I>command</I> and 
<I>sequence</I> are missing then a list of all the event sequences for 
which bindings have been defined for <I>tagName</I>. 
<P><DT><A NAME="M44"><I>pathName </I><B>button cget</B> <I>option</I></A><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 <B>configure</B>
operation described below.
<P><DT><A NAME="M45"><I>pathName </I><B>button configure</B> ?<I>option</I>? ?<I>value option value ...</I>?</A><DD>
Query or modify the configuration options of the widget.
If no <I>option</I> is specified, returns a list describing all of
the available options for <I>pathName</I> (see <B><A HREF="../TkLib/ConfigWidg.htm">Tk_ConfigureInfo</A></B> for
information on the format of this list).  If <I>option</I> is specified
with no <I>value</I>, then the command returns a list describing the
one named option (this list will be 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 are specified, then the command
modifies the given widget option(s) to have the given value(s);  in
this case the command returns an empty string.
<I>Option</I> and <I>value</I> are described in the section 
below.
<P></DL>
<P><DT><A NAME="M46"><I>pathName </I><B>cget</B> <I>option</I></A><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 <B>configure</B>
operation described below.
<P><DT><A NAME="M47"><I>pathName </I><B>close </B>?<B>-recurse</B>? ?<B>-trees</B>? <I>tagOrId...</I></A><DD>
Closes the node specified by <I>tagOrId</I>.  In addition, if a Tcl
script was specified by the <B>-closecommand</B> option, it is
invoked.  If the node is already closed, this command has no effect.
If the <B>-recurse</B> flag is present, each child node is
recursively closed.
The <B>-trees</B> flag is like <B>-recurse</B> but operates only on nodes
with children, excluding the <I>root</I>.
<P><DT><A NAME="M48"><I>pathName </I><B>column </B><I>operation</I> ?<I>args</I>?</A><DD>
The following operations are available for treeview columns.
<P>
<DL class="treeview operations">
<DT><A NAME="M49"><I>pathName </I><B>column activate</B> <I>column</I></A><DD>
Sets the active column to <I>column</I>.  <I>Column</I> is the
name of a column in the widget.
When a column is active, it's drawn using its <B>-activetitlebackground</B>
and <B>-activetitleforeground</B> options.  If <I>column</I> is the <B>&quot;&quot;</B>,
then no column will be active.  If no column argument is provided, then
the name of the currently active column is returned.
<P><DT><A NAME="M50"><I>pathName </I><B>column bbox</B> <I>column entry</I></A><DD>
Returns a list of 4 numbers, representing a bounding box of around
the specified entries cell. Giving an entry of <B>-1</B> matches the title row.
<P><DT><A NAME="M51"><I>pathName </I><B>column bind</B> <I>column</I> ?<I>sequence command</I>?</A><DD>
Associates <I>command</I> with <I>column</I> such that whenever the
event sequence given by <I>sequence</I> occurs for a column
node entry with this tag, <I>command</I> will be invoked.  The syntax is
similar to the <B><A HREF="../TkCmd/bind.htm">bind</A></B> command except that it operates on
<B>treeview</B> colunns, rather than widgets. See the <B><A HREF="../TkCmd/bind.htm">bind</A></B>
manual entry for complete details on <I>sequence</I> and the
substitutions performed on <I>command</I> before invoking it.
<P><DT><A NAME="M52"><I>pathName </I><B>column cget</B> <I>name</I> <I>option</I></A><DD>
Returns the current value of the column configuration option given
by <I>option</I> for <I>name</I>.  <I>Name</I> is the name of column
that corresponds to a data field.
<I>Option</I> may have any of the values accepted by the <B>configure</B>
operation described below.
<P><DT><A NAME="M53"><I>pathName </I><B>column configure</B> <I>name</I> ?<I>name</I> ...? ?<I>option</I>? ?<I>value option value </I> ...?</A><DD>
Query or modify the configuration options of one or more columns
<I>name</I>. <I>Name</I> is the name of the column corresponding
to a data field.
If no <I>option</I> is specified, returns a list describing all of
the available options for <I>pathName</I> (see <B><A HREF="../TkLib/ConfigWidg.htm">Tk_ConfigureInfo</A></B> for
information on the format of this list).  If <I>option</I> is specified
with no <I>value</I>, then the command returns a list describing the
one named option (this list will be 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 are specified, then the command
modifies the given widget option(s) to have the given value(s);  in
this case the command returns an empty string.
<I>Option</I> and <I>value</I> are described in the section
below.
<P><DT><A NAME="M54"><I>pathName </I><B>column current</B></A><DD>
Get column currently under the mouse.
<P><DT><A NAME="M55"><I>pathName </I><B>column delete</B> <I>field</I> ?<I>field</I>...?</A><DD>
Deletes one of more columns designated by <I>field</I>.
Requests to delete the tree column are silently ignored.
Note that this does not delete the data fields themselves.
<P><DT><A NAME="M56"><I>pathName </I><B>column index</B> <I>index</I></A><DD>
Return the integer for index.  May use &quot;end&quot; or &quot;end-N&quot;.
<P><DT><A NAME="M57"><I>pathName </I><B>column insert</B> <I>position</I> <I>field</I>  ?<I>field</I> ...? ?<I>options</I>...?</A><DD>
Inserts one (or more) columns designated by <I>field</I>.
A column displays
each entry node's data field using this name.  If the node doesn't
define the given field, the cell is left blank.
<I>Position</I>
indicates where in the list of columns to add the new column.  It may be
either a name, a number or <B>end</B>.
If multiple <I>fields</I> are given, they may not start with a dash.
If <I>field</I> is the empty string or <B>#auto</B>,
a name is generated prefixed by the string <B>Col</B> plus a unique integer.
If <I>field</I> ends with <B>#auto</B>, the generated name uses it's prefix
instead.
The returned values is the created column names.
Note that the predefined tree column (ie. <I>BLT-TreeView</I>)
is aliased by <I>Col0</I>.
<P><DT><A NAME="M58"><I>pathName </I><B>column invoke</B> <I>field</I></A><DD>
Invokes the Tcl command associated with the column <I>field</I>, 
if there is one (using the column's <B>-command</B> option).  
The command is ignored if the column's <B>-state</B> option 
set to <B>disabled</B>.
<P><DT><A NAME="M59"><I>pathName </I><B>column isset ?</B><I>startOrTag</I>? ?<I>end</I>?</A><DD>
Returns list of data columns for elements in range
actually having data values set in them.
One possible use for this might be hiding columns which are empty.
With no arguments, checks only entries on the visible screen.
With one argument, checks all entries matching a tag or id.
With two arguments, checks all entries between start and end range.
<P><DT><A NAME="M60"><I>pathName </I><B>column istree </B><I>field</I></A><DD>
Return 1 if column is the tree column.
<P><DT><A NAME="M61"><I>pathName </I><B>column move </B><I>name</I> <I>dest</I></A><DD>
Moves the column <I>name</I> to the destination position.  
<I>Dest</I> is the offset, name of another column or a screen position
in the form <B>@</B><I>x</I><B>,</B><I>y</I>.
<P><DT><A NAME="M62"><I>pathName </I><B>column names ?</B><I>-visible</I>? ?<I>PATTERN</I>?</A><DD>
Returns a list of the names of all columns in the widget.
The list is ordered as the columns are drawn from left-to-right.
If -visible, then display only columns where -hide is 0.
A pattern may be specified to limit results.
<P><DT><A NAME="M63"><I>pathName </I><B>column nearest</B> <I>x</I> ?<I>y</I>?</A><DD>
Returns the name of the column closest to the given X-Y screen
coordinate.  If you provide a <I>y</I> argument (it's optional),
a name is returned only when if the point is over a column's title.
<P><DT><A NAME="M64"><I>pathName </I><B>column offsets</B></A><DD>
Returns the starting offsets for each column.
<P><DT><A NAME="M65"><I>pathName </I><B>column resize op ...</B></A><DD>
Operations for resize where op is one of activate, anchor, mark or set.
<P><DT><A NAME="M66"><I>pathName </I><B>column see</B> ?<B>-anchor</B> <I>anchor</I>? <I>field</I></A><DD>
Adjusts the view so that the column given by <I>field</I> is
visible in the widget window.
The node's position on the screen can be set using the
<B>-anchor</B> flag.  Its value is a Tk anchor position: <B>w, c, e</B>.
<P><DT><A NAME="M67"><I>pathName </I><B>column values</B> ?<B>-visible</B>? ?<B>-default value</B>? <I>field</I> ?<I>start</I>? ?<I>end</I>?</A><DD>
Returns a list of data values for a column.
The -visible flag excludes the values that are hidden or inside closed subtrees.
The root nodes does not get included when <I>-hideroot</I> is true.
The -default option specifies a value to substitute for unset data column cells.
<P></DL>
<P><DT><A NAME="M68"><I>pathName </I><B>configure</B> ?<I>option</I>? ?<I>value option value ...</I>?</A><DD>
Query or modify the configuration options of the widget.
If no <I>option</I> is specified, returns a list describing all of
the available options for <I>pathName</I> (see <B><A HREF="../TkLib/ConfigWidg.htm">Tk_ConfigureInfo</A></B> for
information on the format of this list).  If <I>option</I> is specified
with no <I>value</I>, then the command returns a list describing the
one named option (this list will be 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 are specified, then the command
modifies the given widget option(s) to have the given value(s);  in
this case the command returns an empty string.
<I>Option</I> and <I>value</I> are described in the section
below.
<P><DT><A NAME="M69"><I>pathName </I><B>curselection</B></A><DD>
Returns a list containing the ids of all of the entries that are 
currently selected.
If there are no entries selected, then the empty string is returned.
<P><DT><A NAME="M70"><I>pathName </I><B>delete </B><I>tagnode</I>...</A><DD>
Deletes one or more entries given by <I>tagnode</I> and its children.
<P><DT><A NAME="M71"><I>pathName </I><B>edit ?</B><I>-test -root</I>? <I>X Y</I></A><DD>
Test if edit is complete.
<P><DT><A NAME="M72"><I>pathName </I><B>entry </B><I>operation</I> ?<I>args</I>?</A><DD>
The following operations are available for treeview entries.
<P>
<DL class="treeview operations">
<DT><A NAME="M73"><I>pathName </I><B>entry activate</B> <I>tagOrId</I></A><DD>
Sets the active entry to the one specified by <I>tagOrId</I>.  
When an entry is active it is drawn using its active icon 
(see the <B>-activeicon</B> and <B>-activeleaficon</B> options). 
The special id of the currently active node is <B>active</B>.
Note that there can be only one active node at a time and
currently icons must be the same size/shape as the backgrounds are not cleared.
But <B><A HREF="../TkCmd/bind.htm">bind</A></B> can be used to overcome these limitations.
<P><DT><A NAME="M74"><I>pathName </I><B>entry cget</B> <I>option</I></A><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 <B>configure</B>
operation described below.
<P><DT><A NAME="M75"><I>pathName </I><B>entry children</B> <I>tagOrId</I>  ?<I>first</I>? ?<I>last</I>?</A><DD>
Returns a list of ids for the given range of children of <I>tagOrId</I>.  
<I>TagOrId</I> is the id or tag of the node to be examined.
If only a <I>first</I> argument is present, then the id 
of the that child at that numeric position is returned.  If both <I>first</I> 
and <I>last</I> arguments are given, then the ids of all the children
in that range are returned.  Otherwise the ids of all children
are returned.  
<P><DT><A NAME="M76"><I>pathName </I><B>entry configure</B> <I>tagnode</I> ?<I>option</I>? ?<I>value option value ...</I>?</A><DD>
Query or modify the configuration options of the widget.
If no <I>option</I> is specified, returns a list describing all of
the available options for <I>tagnode</I> (see <B><A HREF="../TkLib/ConfigWidg.htm">Tk_ConfigureInfo</A></B> for
information on the format of this list).  If <I>option</I> is specified
with no <I>value</I>, then the command returns a list describing the
one named option (this list will be 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 are specified, then the command
modifies the given widget option(s) to have the given value(s);  in
this case the command returns an empty string.
<I>Option</I> and <I>value</I> are described below:
<P><DT><A NAME="M77"><I>pathName </I><B>entry delete</B> <I>tagOrId</I> ?<I>first</I> ?<I>last</I>?</A><DD>
Deletes the one or more children nodes of the parent <I>tagOrId</I>.
If <I>first</I> and <I>last</I> arguments are present, they are
positions designating a range of children nodes to be deleted.
<P><DT><A NAME="M78"><I>pathName </I><B>entry depth </B><I>tagOrId</I></A><DD>
Return tree depth of node where root is 0.
<P><DT><A NAME="M79"><I>pathName </I><B>entry down </B><I>tagOrId</I></A><DD>
The next open node from the given node. The <B>down</B> of
the last open node is the same.
<P><DT><A NAME="M80"><I>pathName </I><B>entry get</B> <I>tagOrId</I> ?<I>key</I>? ?<I>default</I>?</A><DD>
Return a key-field value for an entry.
When no <I>key</I> is given, returns the values of all visible columns.
If the given <I>key</I> is undefined, return <I>default</I> if given, else
throw an error.
Unlike <B>entry set</B>, the tree
is accessed directly so keys not having associated columns are supported.
<P><DT><A NAME="M81"><I>pathName </I><B>entry isbefore </B><I>tagOrId1</I> <I>tagOrId2</I></A><DD>
Returns 1 if <I>tagOrId1</I> is before <I>tagOrId2</I> and 0 otherwise.
<P><DT><A NAME="M82"><I>pathName </I><B>entry ishidden </B><I>tagOrId</I></A><DD>
Returns 1 if the node is currently hidden and 0 otherwise.  A node is
also hidden if any of its ancestor nodes are closed or hidden.
<P><DT><A NAME="M83"><I>pathName </I><B>entry isopen </B><I>tagOrId</I></A><DD>
Returns 1 if the node is currently open and 0 otherwise.
<P><DT><A NAME="M84"><I>pathName </I><B>entry isset </B> <I>tagOrId col</I></A><DD>
Return true if the entry sets a column-field (has a value).
The entry and column both must exist.
<P><DT><A NAME="M85"><I>pathName </I><B>entry isvisible </B><I>tagOrId</I></A><DD>
Returns 1 if node is not hidden, inside a closed subtree.
<P><DT><A NAME="M86"><I>pathName </I><B>entry next </B><I>tagOrId</I></A><DD>
The next open node from the given node.  But unlike <B>down</B>,
when the focus is on last open node, <B><A HREF="../TclCmd/next.htm">next</A></B> wraps around to the 
root node.
<P><DT><A NAME="M87"><I>pathName </I><B>entry parent </B><I>tagOrId</I></A><DD>
Returns parent of the given node.
<P><DT><A NAME="M88"><I>pathName </I><B>entry prev </B><I>tagOrId</I></A><DD>
The last open node from the given node. But unlike <B>up</B>,
when the focus is at root, <B>last</B> wraps around to the last
open node in the tree.
<P><DT><A NAME="M89"><I>pathName </I><B>entry relabel </B><I>tagOrId newLabel</I></A><DD>
Change the tree node label associated with an entry.
This sets the tree node <I>label</I>;
ie. the value returned by the <B>get</B> command.
Note this is not the same thing as the
treeview entries <B>-label</B> option.
Also, the <B>-allowduplicates</B> option must be enabled to use this command
as no duplicate checking will be performed.
<P><DT><A NAME="M90"><I>pathName </I><B>entry select </B><I>tagOrId</I></A><DD>
Make the given node visible and give it the focus.
When in single selectmode, select it (calls <I>::blt::tv::MoveFocus</I>)
<P><DT><A NAME="M91"><I>pathName </I><B>entry set </B> <I>tagOrId col</I> ?<I>value col value ...</I>?</A><DD>
Get or set column-fields for an entry.  Provides a simple
way to read or update fields from the <I>-data</I> option of an entry.
<P><DT><A NAME="M92"><I>pathName </I><B>entry sibling ?-before</B>? <I>tagOrId</I></A><DD>
The next/previous sibling from the given node.  If the node
is already the last/first sibling then nothing is returned.
<P><DT><A NAME="M93"><I>pathName </I><B>entry size</B> <B>-recurse</B> <I>tagOrId</I></A><DD>
Returns the number of children for parent node <I>tagOrId</I>.  
If the <B>-recurse</B> flag is set, the number of all 
its descendants is returned.  The node itself is not counted.
<P><DT><A NAME="M94"><I>pathName </I><B>entry unset </B> <I>tagOrId col</I></A><DD>
Unset a column-field for an entry.
<P><DT><A NAME="M95"><I>pathName </I><B>entry up </B><I>tagOrId</I></A><DD>
The last open node (in depth-first order) from the given node. The
<B>up</B> of the last node is itself.
<P><DT><A NAME="M96"><I>pathName </I><B>entry value </B> <I>tagOrId</I> ?<I>col</I>?</A><DD>
Return the value for an entry column, or all visible columns
if <I>col</I> not given.
Unlike <B>entry set</B>, this gives access to the formatted value
from <B>-formatcmd</B> (if there was one).
<P></DL>
<P><DT><A NAME="M97"><I>pathName </I><B>find </B>?<I>flags</I>? <I>first</I> <I>last</I></A><DD>
Finds for all entries matching the criteria given by <I>flags</I>.  A
list of ids for all matching nodes is returned. <I>First</I> and
<I>last</I> are ids designating the range of the search in
depth-first order. If <I>last</I> is before <I>first</I>, then nodes
are searched in reverse order.  The valid flags are:
<P>
<DL class="treeview operations">
<DT><A NAME="M98"><B>-addtag NAME</B></A><DD>
Add tag to each matching entry.
<P><DT><A NAME="M99"><B>-command</B> <I>command</I></A><DD>
Invoke <I>command</I> for each matching node.  Before <I>command</I> is
invoked, the id of the node is appended. If <I>command</I>
generates an error, processing stops and the <B>find</B> operation
returns an error.
<P><DT><A NAME="M100"><B>-column</B><I> col</I></A><DD>
Match name against value of given column.  Must be used with
<I>-name</I> and can not use with <I>-usepath</I>.
<P><DT><A NAME="M101"><B>-count</B></A><DD>
Just return the number of matches.
<P><DT><A NAME="M102"><B>-depth</B> <I>number</I></A><DD>
Entry must be at depth <I>number</I>.
<P><DT><A NAME="M103"><B>-exact</B></A><DD>
Patterns must match exactly.  The is the default.
<P><DT><A NAME="M104"><B>-exec</B><I> string</I></A><DD>
Specifies a Tcl script to be evaluated for each matching node.
If <B>-var</B> was also specified, that variable is set with the value of 
the node id before each evaluation.  Otherwise,
percent sustitutions are performed: note this is much
less efficient than using either <B>-var</B> or <B>-command</B>
<P>
The result of each eval gets appended to the return list, unless
the script issues a CONTINUE, in which case that node is skipped.
<P>
The available percent substitutions on <I>string</I> are:
<P>
<DL class="treeview operations">
<DT><A NAME="M105"><B>%#</B></A><DD>
The id of the node.
<P><DT><A NAME="M106"><B>%W</B></A><DD>
The pathname of the widget.
<P><DT><A NAME="M107"><B>%p</B></A><DD>
The name of the node.
<P><DT><A NAME="M108"><B>%P</B></A><DD>
The full pathname of the node.
<P><DT><A NAME="M109"><B>%V</B></A><DD>
The current value (the node name, node label or column value).
<P><DT><A NAME="M110"><B>%F</B></A><DD>
Like <B>%V</B>, but returns the on-screen value (from -formatcmd).
<P><DT><A NAME="M111"><B>%C</B></A><DD>
The current column.
<P><DT><A NAME="M112"><B>%%</B></A><DD>
Translates to a single percent.
<P></DL>
<P><DT><A NAME="M113"><B>-glob</B></A><DD>
Use global pattern matching.  Matching is done in a fashion
similar to that used by <B><A HREF="../TclCmd/string.htm">string match</A></B>.
<P><DT><A NAME="M114"><B>-invert</B></A><DD>
Invert the meaning of the pattern match for <B>-name</B>.
<P><DT><A NAME="M115"><B>-isclosed</B></A><DD>
Include only entries that are closed.
<P><DT><A NAME="M116"><B>-ishidden</B></A><DD>
Include only entries that are hidden, either because the entry
has set -hide, or is has style that is hidden.
The root node is not included.
<P><DT><A NAME="M117"><B>-isleaf</B></A><DD>
Entry must not have child nodes.
<P><DT><A NAME="M118"><B>-ismapped</B></A><DD>
Include only entries that are currently all or partly drawn on screen.
The root node is not included.
<P><DT><A NAME="M119"><B>-isopen</B></A><DD>
Include only entries that are opened.
<P><DT><A NAME="M120"><B>-istree</B></A><DD>
Entry must have child nodes.
<P><DT><A NAME="M121"><B>-limit</B><I> number</I></A><DD>
Stop searching after <I>number</I> matches.
<P><DT><A NAME="M122"><B>-maxdepth</B></A><DD>
Entry must be at depth or lower.
<P><DT><A NAME="M123"><B>-mindepth</B></A><DD>
Entry must be at depth or higher.
<P><DT><A NAME="M124"><B>-name</B><I> pattern</I></A><DD>
Specifies pattern to match against node names.
<P><DT><A NAME="M125"><B>-nocase</B></A><DD>
Comparisison is ignores case.  For -regexp, the target string
gets lower cased (but not the pattern).
<P><DT><A NAME="M126"><B>-notop</B></A><DD>
Exclude the <B>-top</B> or starting node.
<P><DT><A NAME="M127"><B>-regexp</B></A><DD>
Use regular expression pattern matching (i.e. the same as implemented
by the <B><A HREF="../TclCmd/regexp.htm">regexp</A></B> command).  
<P><DT><A NAME="M128"><B>-reldepth</B></A><DD>
Change the meaning of <B>-depth</B>, <B>-mindepth</B> and <B>-maxdepth</B>
to be relative to the <B>-top</B> node.
<P><DT><A NAME="M129"><B>-return</B><I> col</I></A><DD>
Instead of the node id, return data value of named column.
If <I>col</I> starts with a %, performs percent substitution
as per <B>-command</B>.
Note that a percent
substitution longer than 2 chars will append values as list elements.
<P><DT><A NAME="M130"><B>-top </B><I>node</I></A><DD>
Search is only at <I>node</I> and it's descendants.
The default is the root node.
<P><DT><A NAME="M131"><B>-useformat</B></A><DD>
Compare pattern using <B>-formatcmd</B> value (if there is one) instead key data value.
<P><DT><A NAME="M132"><B>-uselabel</B></A><DD>
Compare pattern using label (if there is one) instead last component of path.
<P><DT><A NAME="M133"><B>-usepath</B></A><DD>
Compare pattern using the full path name.
<P><DT><A NAME="M134"><B>-userow</B></A><DD>
Compare pattern using the node value plus the values of all keys in the row.
If used with <B>-visible</B>, only the visible column keys are used.
<P><DT><A NAME="M135"><B>-visible</B></A><DD>
Exclude values that are hidden or inside closed subtrees.
eg. The root node is excluded if <I>-hideroot</I> is true.
<P><DT><A NAME="M136"><B>-withouttag NAME</B></A><DD>
Match entries without tag.
<P><DT><A NAME="M137"><B>-withtag NAME</B></A><DD>
Match entries with tag.
<P><DT><A NAME="M138"><B>-var </B><I>variable</I></A><DD>
A variable to set with the node id before each iteration of the <B>-exec</B>
script.
<P><DT><A NAME="M139"><B>-option</B> <I>name value</I></A><DD>
Specifies an option name and value
to match against the node entry's configuration option.
<P><DT><A NAME="M140"><B>--</B></A><DD>
Indicates the end of flags.
<P></DL>
<P><DT><A NAME="M141"><I>pathName </I><B>focus </B>?<I>tagOrId</I>?</A><DD>
Get or set the focus to the node given by <I>tagOrId</I>.  When a node
has focus, it can receive keyboard events.   
The special id <B><A HREF="../TkCmd/focus.htm">focus</A></B> designates the node that currently has focus.
<P><DT><A NAME="M142"><I>pathName </I><B>get</B> ?<B>-full</B>? ?<B>-labels</B>? <I>tagnode</I> <I>tagnode</I>...</A><DD>
Translates one or more ids to their node entry names.  It returns a list of 
names for all the ids specified.  If the <B>-full</B>
flag is set, then the full pathnames are returned.
If the <B>-labels</B>
flag is set, then the full pathnames using labels are returned.  
<P>
Note: Except when a called with a single node id (ie. an integer),
the result will be a list
(or list of lists when -separator isn't set).
<P><DT><A NAME="M143"><I>pathName </I><B>hide </B>?<B>flags</B>? <I>tagOrId</I>...</A><DD>
Hides all nodes matching the criteria given by <I>flags</I>.
If no <I>tagOrId</I> are given, traverses entire tree.
The valid flags are described below:
<P>
<DL class="treeview operations">
<DT><A NAME="M144"><B>-column</B><I> col</I></A><DD>
Match name against value of given column.  Must be used with
<I>-name</I> and can not use <I>-usepath</I>.
<P><DT><A NAME="M145"><B>-depth</B> <I>number</I></A><DD>
Entry must be at depth <I>number</I>.
<P><DT><A NAME="M146"><B>-exact</B></A><DD>
Match patterns exactly.  The is the default.
<P><DT><A NAME="M147"><B>-glob</B></A><DD>
Use global pattern matching.  Matching is done in a fashion
similar to that used by <B><A HREF="../TclCmd/string.htm">string match</A></B>.
<P><DT><A NAME="M148"><B>-invert</B></A><DD>
Invert the meaning of the pattern match for <B>-name</B> or <B>-option</B>.
<P><DT><A NAME="M149"><B>-maxdepth</B></A><DD>
Entry must be at depth or lower.
<P><DT><A NAME="M150"><B>-mindepth</B></A><DD>
Entry must be at depth or higher.
<P><DT><A NAME="M151"><B>-name</B><I> pattern</I></A><DD>
Specifies pattern to match against node names.
<P><DT><A NAME="M152"><B>-nocase</B></A><DD>
Ignore case in match.
<P><DT><A NAME="M153"><B>-option name value</B></A><DD>
Specifies an option name and value
to match against the node entry's configuration option.
<P><DT><A NAME="M154"><B>-regexp</B></A><DD>
Use regular expression pattern matching (i.e. the same as implemented
by the <B><A HREF="../TclCmd/regexp.htm">regexp</A></B> command).  
<P><DT><A NAME="M155"><B>-uselabel</B></A><DD>
Specifies that the -name pattern is to match the label.
<P><DT><A NAME="M156"><B>-usepath</B></A><DD>
Specifies that the -name pattern is to match the full path.
<P><DT><A NAME="M157"><B>-withouttag NAME</B></A><DD>
Match entries with tag.
<P><DT><A NAME="M158"><B>-withtag NAME</B></A><DD>
Match entries with tag.
<P><DT><A NAME="M159"><B>--</B></A><DD>
Indicates the end of flags.
<P></DL>
<P><DT><A NAME="M160"><I>pathName </I><B>index </B>?<B>-at</B> <I>tagOrId</I>? ?<B>-path</B>? ?<B>-quiet</B>? <I>string</I></A><DD>
Returns the id of the node specified by <I>string</I>.  <I>String</I>
may be a tag or node id.
Some special ids are normally relative to the node that 
has focus but the <B>-at</B> option can be used to change this.
The <B>-path</B> flag does a lookup using <I>String</I> as a path
relative the tree root (unless the <B>-at</B> option is given).
The the <B>-quiet</B> flag is given, lookup failures quietly return
the empty string.
<P><DT><A NAME="M161"><I>pathName </I><B>insert</B> ?<B>-node </B><I>num</I>? ?<B>-at </B><I>tagOrId</I>? ?<B>-styles </B><I>styleslist</I>? ?<B>-tags </B><I>tagslist</I>? <I>position</I> ?<I>path</I>? ?<I>options...</I>? ?<I>path</I>? ?<I>options...</I>?</A><DD>
Inserts one or more nodes at <I>position</I>.  <I>Position</I> is the
location (number or <B>end</B>) where the new nodes are added to
the parent node.  <I>Path</I> is the pathname of the new node.
Pathnames can be formatted either as a Tcl list (each element is a path
component) or as a string separated by a special character sequence
(using the <B>-separator</B> option).  Pathnames are normally
absolute, but the <B>-at</B> switch lets you select a relative
starting point.  Its value is the id of the starting node.
<P>
If <I>path</I> name and options are ommitted,  <I>path</I>
will default to <I>#auto</I>.
<P>
A <I>path</I> name of <I>#auto</I> attempts to use
the tree node name as the <I>path</I> name.
For large flat trees setting <B>-allowduplicates</B> to true 
can greatly speedup loading #auto as it avoids checking overhead.
This is the fastest way to bulk load large numbers of nodes
(next to using <B>-tree</B>).
<P>
If the last component of a <I>path</I> name 
ends in <I>#auto</I>, the path is
generated using the string prefix (before #auto)
followed by a sequential number unique within the
parent, eg. <B>.t insert end {users u#auto}</B>.
<P>
The <B>-node</B> switch lets you specify a tree node number
directly instead of having one generating automatically.
For multi-node inserts, the node number is incremented.
<P>
The <B>-styles</B> switch specifies a list of column/stylename
pairs to set for elements of the <B>-data</B> option. 
<P>
The <B>-tags</B> switch specifies a list of tags to add
to the new entries.
<P>
Note that all ancestors of the new node must already exist, unless the
<B>-autocreate</B> option is set.  It is also an error if a node
already exists, unless the <B>-allowduplicates</B> option is set.
<P>
The <I>option</I> and <I>value</I> arguments
may have any of the values accepted by the 
<B>entry configure</B> operation described in the
section below.  The returned value is list of ids for
the new entries.
<P><DT><A NAME="M162"><I>pathName </I><B>move </B><I>tagnode</I> <I>how</I> <I>destId</I></A><DD>
Moves the node(s) given by <I>tagnode</I> to the destination node.  The
node can not be an ancestor of the destination.  <I>DestId</I> is
the id of the destination node and can not be the root of the
tree.  In conjunction with <I>how</I>, it describes how the move is
performed.
<P>
<DL class="treeview operations">
<DT><A NAME="M163"><B>before</B></A><DD>
Moves the node before the destination node.
<P><DT><A NAME="M164"><B>after</B></A><DD>
Moves the node after the destination node.
<P><DT><A NAME="M165"><B>into</B></A><DD>
Moves the node to the end of the destination's list of children.
<P></DL>
<P><DT><A NAME="M166"><I>pathName </I><B>nearest</B>  ?<B>-root</B>?  ?<B>-strict</B>? <I>x y</I> ?<I>varName</I>?</A><DD>
Returns the id of the node entry closest to the given X-Y screen
coordinate.  If the coordinate is not directly over any node, then the
nearest node is returned.  If the argument <I>varName</I> is present,
this is a Tcl variable that is set to either <B><A HREF="../TkCmd/button.htm">button</A></B>,
<B>icon</B>, <B><A HREF="../TkCmd/label.htm">label</A></B>, <B>title</B>, <B>titlelabel</B>, <B>titleicon</B>, <B>datalabel</B>, <B>dataicon</B>, or <B>&quot;&quot;</B> depending what part of the
entry the coordinate lies.
The -root option subtracts the windows root from the coordinates.
The -strict option fails the match if not directly
over a node, eg. in the title or past end of last row.
<P><DT><A NAME="M167"><I>pathName </I><B>open </B>?<B>-recurse</B>? ?<B>-trees</B>? <I>tagnode...</I></A><DD>
Opens the one or more nodes specified by <I>tagnode</I>.  
If a node is not already open, the Tcl script specified by the 
<B>-opencommand</B> option is invoked. If the <B>-recurse</B> flag 
is present, then each descendant is recursively opened.  
The <B>-trees</B> flag is like <B>-recurse</B> but operates only on nodes
with children.
<P><DT><A NAME="M168"><I>pathName </I><B>range</B> ?<B>-open</B>? <I>first last</I></A><DD>
Returns the ids in depth-first order of the nodes
between the <I>first</I> and <I>last</I> ids.  If the <B>-open</B>
flag is present, it indicates to consider only open nodes.
If <I>last</I> is before <I>first</I>, then the ids are
returned in reverse order.
<P><DT><A NAME="M169"><I>pathName </I><B>scan</B> <I>option args</I></A><DD>
This command implements scanning.  It has
two forms, depending on <I>option</I>:
<P>
<DL class="treeview operations">
<DT><A NAME="M170"><I>pathName </I><B>scan mark </B><I>x y</I></A><DD>
Records <I>x</I> and <I>y</I> and the current view in the treeview
window;  used in conjunction with later <B>scan dragto</B> commands.
Typically this command is associated with a mouse button press in
the widget.  It returns an empty string.
<P><DT><A NAME="M171"><I>pathName </I><B>scan dragto </B><I>x y</I>.</A><DD>
Computes the difference between its <I>x</I> and <I>y</I>
arguments and the <I>x</I> and <I>y</I> arguments to the last
<B>scan mark</B> command for the widget.
It then adjusts the view by 10 times the
difference in coordinates.  This command is typically associated
with mouse motion events in the widget, to produce the effect of
dragging the list at high speed through the window.  The return
value is an empty string.
<P></DL>
<P><DT><A NAME="M172"><I>pathName </I><B>see</B> ?<B>-anchor </B><I>anchor</I>? <I>tagOrId</I></A><DD>
Adjusts the view of entries so that the node given by <I>tagOrId</I> is
visible in the widget window.  It is an error if <B>tagOrId</B> is a
tag that refers to more than one node.  The node's position
on the screen can be set using the
<B>-anchor</B> flag.  Its value is a Tk anchor position: <B>n, c, s</B>.
<P><DT><A NAME="M173"><I>pathName </I><B>selection </B><I>option arg</I></A><DD>
This command is used to adjust the selection within a <B>treeview</B>
widget.  It has several forms, depending on <I>option</I>:
<P>
<DL class="treeview operations">
<DT><A NAME="M174"><I>pathName </I><B>selection anchor ?</B><I>tagOrId</I>? ?<I>column</I>?</A><DD>
Sets the selection anchor to the node given by <I>tagOrId</I>.
If <I>tagOrId</I> refers to a non-existent node, then the closest
node is used.
The selection anchor is the end of the selection that is fixed
while dragging out a selection with the mouse.
The special id <B>anchor</B> may be used to refer to the anchor
node.  With no arguments, returns anchor entry and column if any.
<P><DT><A NAME="M175"><I>pathName </I><B>selection cells</B></A><DD>
Returns pairs of nodes and columns for all selected cells.
The -selectmode must be <I>cell</I> or <I>multicell</I>.
<P><DT><A NAME="M176"><I>pathName </I><B>selection clear </B><I>first </I>?<I>last</I>? ?<I>column</I>?</A><DD>
Removes the entries between <I>first</I> and <I>last</I>
(inclusive) from the selection.  Both <I>first</I> and 
<I>last</I> are ids representing a range of entries.
If <I>last</I> isn't given, then only <I>first</I> is deselected.
Entries outside the selection are not affected.
<P><DT><A NAME="M177"><I>pathName </I><B>selection clearall</B></A><DD>
Clears the entire selection.  
<P><DT><A NAME="M178"><I>pathName </I><B>selection mark </B><I>tagOrId</I> ?<I>column</I>?</A><DD>
Sets the selection mark to the node given by <I>tagOrId</I>.  This
causes the range of entries between the anchor and the mark to be
temporarily added to the selection.  The selection mark is the end of
the selection that is fixed while dragging out a selection with the
mouse.  The special id <B>mark</B> may be used to refer to the current 
mark node.
If <I>tagOrId</I> refers to a non-existent node, then the mark
is ignored.
Resetting the mark will unselect
the previous range.  Setting the anchor finalizes the range.
<P><DT><A NAME="M179"><I>pathName </I><B>selection includes </B><I>tagOrId</I> ?<I>column</I>?</A><DD>
Returns 1 if the node given by <I>tagOrId</I> is currently
selected, 0 if it isn't.
<P><DT><A NAME="M180"><I>pathName </I><B>selection present</B></A><DD>
Returns 1 if any nodes are currently selected and 0 otherwise.
<P><DT><A NAME="M181"><I>pathName </I><B>selection set </B><I>first </I>?<I>last</I>? ?<I>column</I>?</A><DD>
Selects all of the nodes in the range between
<I>first</I> and <I>last</I>, inclusive, without affecting
the selection state of nodes outside that range.
<P><DT><A NAME="M182"><I>pathName </I><B>selection toggle </B><I>first </I>?<I>last</I>? ?<I>column</I>?</A><DD>
Selects/deselects nodes in the range between
<I>first</I> and <I>last</I>, inclusive, from the selection.
If a node is currently selected, it becomes deselected, and
visa versa.
<P></DL>
<P><DT><A NAME="M183"><I>pathName </I><B>show </B>?<B>flags</B>? <I>tagOrId</I>...</A><DD>
Un-hide nodes matching the criteria given by <I>flags</I>.
If no <I>tagOrId</I> are given, traverses entire tree.
The <I>flags</I> are the same as for the <B>hide</B> command.
<P><DT><A NAME="M184"><I>pathName </I><B>sort</B> ?<I>operation</I>? <I>args...</I></A><DD>
<P>
<DL class="treeview operations">
<DT><A NAME="M185"><I>pathName </I><B>sort auto</B> ?<I>boolean</I></A><DD>
Turns on/off automatic sorting of node entries.  If <I>boolean</I> is
true, entries will be automatically sorted as they are opened,
closed, inserted, or deleted.  If no <I>boolean</I> argument is
provided, the current state is returned.
<P><DT><A NAME="M186"><I>pathName </I><B>sort cget</B> <I>option</I></A><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 <B>configure</B>
operation described below.
<P><DT><A NAME="M187"><I>pathName </I><B>sort configure</B> ?<I>option</I>? ?<I>value option value ...</I>?</A><DD>
Query or modify the sorting configuration options of the widget.
If no <I>option</I> is specified, returns a list describing all of
the available options for <I>pathName</I> (see <B><A HREF="../TkLib/ConfigWidg.htm">Tk_ConfigureInfo</A></B> for
information on the format of this list).  If <I>option</I> is specified
with no <I>value</I>, then the command returns a list describing the
one named option (this list will be 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 are specified, then the command
modifies the given sorting option(s) to have the given value(s);  in
this case the command returns an empty string.
<I>Option</I> and <I>value</I> are described below:
<P>
<DL class="treeview operations">
<DT><A NAME="M188"><B>-column</B><I> string</I></A><DD>
Specifies the column to sort. Entries in the widget are rearranged
according to this column.  If <I>column</I> is <B>&quot;&quot;</B> then
no sort is performed.
<P><DT><A NAME="M189"><B>-command</B><I> string</I></A><DD>
Specifies a Tcl procedure to be called when sorting nodes. 
The procedure is called with three arguments: the pathname of the widget
and the fields of two entries.  The procedure returns 1 if the first
node is greater than the second, -1 is the second is greater, and 0
if equal.  
<P><DT><A NAME="M190"><B>-decreasing</B><I> boolean</I></A><DD>
Indicates to sort in ascending/descending order.  If <I>boolean</I> 
is true, then the entries as in descending order. The default is 
<B>no</B>.
<P><DT><A NAME="M191"><B>-mode</B><I> string</I></A><DD>
Specifies how to compare entries when sorting. <I>String</I>
may be one of the following:
<P><DT><A NAME="M192"><B>-setflat</B><I> bool</I></A><DD>
Used by SortColumn to remember if tree was forced to flat by a sort.
<P>
<DL class="treeview operations">
<DT><A NAME="M193"><B>ascii</B></A><DD>
Use string comparison based upon the ASCII collation order.
<P><DT><A NAME="M194"><B>dictionary</B></A><DD>
Use dictionary-style comparison.  This is the same as <B>ascii</B>
except (a) case is ignored except as a tie-breaker and (b) if two
strings contain embedded numbers, the numbers compare as integers, not
characters.  For example, &quot;bigBoy&quot; sorts between
&quot;bigbang&quot; and &quot;bigboy&quot;, and &quot;x10y&quot; sorts between &quot;x9y&quot; and &quot;x11y&quot;.
<P><DT><A NAME="M195"><B>integer</B></A><DD>
Compares fields as integers.
<P><DT><A NAME="M196"><B>real</B></A><DD>
Compares fields as floating point numbers.
<P><DT><A NAME="M197"><B>command</B></A><DD>
Use the Tcl proc specified by the <B>-command</B> option to compare entries 
when sorting.   If no command is specified, the sort reverts to 
<B>dictionary</B> sorting.
<P></DL>
<P></DL>
<P><DT><A NAME="M198"><I>pathName </I><B>sort once</B> ?<I>flags</I>? <I>tagOrId...</I></A><DD>
Sorts the children for each entries specified by <I>tagOrId</I>.  
By default, entries are sorted by name, but you can specify a 
Tcl proc to do your own comparisons.
<P>
<DL class="treeview operations">
<DT><A NAME="M199"><B>-recurse</B></A><DD>
Recursively sort the entire branch, not just the children.
<P></DL>
<P></DL>
<P><DT><A NAME="M200"><I>pathName </I><B>style </B><I>operation</I> ?<I>args</I>?</A><DD>
Styles control how data is to be rendered by the widget.
They are created with the <B>create</B> subcommands (described below)
A default style name <B><A HREF="../TkCmd/text.htm">text</A></B> is builtin.  It is of type
<I>textbox</I> and is used as the default style for columns.
Styles may also be applied to entries, individual cells or
widget options.  For example, the <B>-altstyle</B> option applies a style to
every second visible row entry while the
<B>-levelstyles</B> option can specify a different style for each node level.
<P>
The following operations are available for treeview styles.
<P>
<DL class="treeview operations">
<DT><A NAME="M201"><I>pathName </I><B>style activate</B> <I>entry column</I></A><DD>
Turns on/off highlighting for a particular style.  
This is only partially implemented.
<P><DT><A NAME="M202"><I>pathName </I><B>style cget</B> <I>stylename option</I></A><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 <B>configure</B>
operation described below.
<P><DT><A NAME="M203"><I>pathName </I><B>style configure</B> ?<I>stylename option</I>? ?<I>value option value ...</I>?</A><DD>
Query or modify the configuration options of the widget.
If no <I>option</I> is specified, returns a list describing all of
the available options for <I>pathName</I> (see <B><A HREF="../TkLib/ConfigWidg.htm">Tk_ConfigureInfo</A></B> for
information on the format of this list).  If <I>option</I> is specified
with no <I>value</I>, then the command returns a list describing the
one named option (this list will be 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 are specified, then the command
modifies the given widget option(s) to have the given value(s);  in
this case the command returns an empty string.
<I>Option</I> and <I>value</I> are described below:
<P><DT><A NAME="M204"><I>pathName </I><B>style create</B> <I>...</I>?</A><DD>
Create a named style.
For a full list of style options, see the section
<I>STYLE OPTIONS</I> below.
<P>
<DL class="treeview operations">
<DT><A NAME="M205"><I>pathName </I><B>style create barbox</B> <I>stylename</I> ?<I>option value option value ...</I>?</A><DD>
A <B>barbox</B> displays numeric data plus a progressbar.
<P><DT><A NAME="M206"><I>pathName </I><B>style create checkbox</B> <I>stylename</I> ?<I>option value option value ...</I>?</A><DD>
A <B>checkbox</B> style displays boolean or 2-valued data.
<P><DT><A NAME="M207"><I>pathName </I><B>style create combobox</B> <I>stylename</I> ?<I>option value option value ...</I>?</A><DD>
A <B>combobox</B> style displays multi-valued data.
<P><DT><A NAME="M208"><I>pathName </I><B>style create textbox</B> <I>stylename</I> ?<I>option value option value ...</I>?</A><DD>
A <B>textbox</B> style displays general text data.
<P><DT><A NAME="M209"><I>pathName </I><B>style create windowbox</B> ?<I>stylename</I>? ?<I>option value option value ...</I>?</A><DD>
The special style <B>windowbox</B> suports embedding subwindows within data
cells.
<P></DL>
<P><DT><A NAME="M210"><I>pathName </I><B>style find</B> <I>stylename ?column? ?node? ...</I></A><DD>
Get all entries with the given style for a given column in the given nodes.
When no column is given, looks in entry and data columns.
Duplicates are not eliminated.
cell.
<P><DT><A NAME="M211"><I>pathName </I><B>style forget</B> <I>stylename ...</I></A><DD>
Eliminates one or more style names
whose reference count is zero (i.e. no one else is using it).
Requests to delete <B><A HREF="../TkCmd/text.htm">text</A></B> or styles that are still in use are quietly ignored.
<P><DT><A NAME="M212"><I>pathName </I><B>style get</B> <I>column tagorid</I></A><DD>
Return the style(s) for column and nodes.
cell.
<P><DT><A NAME="M213"><I>pathName </I><B>style highlight</B> <I>stylename ?on|off?</I></A><DD>
Turns on/off highlighting for a particular style.  Used primarily for
columns.
<P><DT><A NAME="M214"><I>pathName </I><B>style names</B></A><DD>
Lists the names of all the current styles in the treeview widget.
<P><DT><A NAME="M215"><I>pathName </I><B>style set</B> <I>stylename column node ...</I></A><DD>
Sets a style for a given column for all the ids given.
If column is the tree, sets the entry style,
otherwise sets the style in the data column,
thus setting the style for a single
cell in an entry.  The style name may be an empty string to unset the style.
Cells that do not have a value may not have a style set and so are
silently ignored.
The number of cells that actually get set with a style is
returned.
<P><DT><A NAME="M216"><I>pathName </I><B>style slaves</B> ?<B>-col </B><I>col</I>? ?<B>-id </B><I>node</I>? ?<B>-style </B><I>styleName</I>? ?<B>-visible </B><I>bool</I>? ?<B>-info </B><I>path</I>?</A><DD>
With no arguments, lists all embedded window slaves.
The <I>-col</I> argument shows only windows in the given column.
The <I>-id</I> argument shows only windows for the given entry.
The <I>-style</I> argument shows only windows with the given style.
The <I>-visible</I> argument shows only windows that are visible or invisible.
The <I>-info</I> argument dumps all information for a single window.
<P></DL>
<P><DT><A NAME="M217"><I>pathName </I><B>tag </B><I>operation args</I></A><DD>
Tags are a general means of selecting and marking nodes in the tree.
A tag is just a string of characters, and it may take any form except
that of an integer.  The same tag may be associated with many
different nodes.  
<P>
Both <I>operation</I> and its arguments determine the exact behavior of
the command.  The operations available for tags are listed below.
<P>
<DL class="treeview operations">
<DT><A NAME="M218"><I>pathName</I> <B>tag add</B> <I>string</I> ?<I>id</I>...?</A><DD>
Adds the tag <I>string</I> to one of more entries.
If no nodes are given, just creates the tag.
<P><DT><A NAME="M219"><I>pathName</I> <B>tag delete</B> <I>string</I> <I>tagnode</I>...</A><DD>
Deletes the tag <I>string</I> from one or more entries.  
<P><DT><A NAME="M220"><I>treeName</I> <B>tag exists</B> <I>string</I> ?<I>id</I>?</A><DD>
If an <I>id</I> is given, return 1 (or 0)  if entry has (or hasn't) the tag.
Otherwise, returns 1 if at least one entry has tag <I>string</I>.
<P><DT><A NAME="M221"><I>pathName</I> <B>tag forget</B> <I>string</I></A><DD>
Removes the tag <I>string</I> from all entries.  It's not an error if no
entries are tagged as <I>string</I>.
<P><DT><A NAME="M222"><I>pathName</I> <B>tag names</B> ?<I>id</I>?</A><DD>
Returns a list of tags used.  If an <I>id</I> argument
is present, only those tags used by the node designated by <I>id</I> 
are returned.
<P><DT><A NAME="M223"><I>pathName</I> <B>tag nodes</B>  <I>name</I> ?<I>name</I> ...?</A><DD>
Returns a list of ids that have any of the <I>name</I> tags.  If no node
is tagged as <I>name</I>, then an empty list is returned.
<P></DL>
<P><DT><A NAME="M224"><I>pathName </I><B>toggle </B><I>tagnode</I></A><DD>
Opens or closes the node given by <I>tagOrId</I>.  If the corresponding 
<B>-opencommand</B> or <B>-closecommand</B> option is set, then that
command is also invoked. 
<P><DT><A NAME="M225"><I>pathName </I><B>xview </B><I>args</I></A><DD>
This command is used to query and change the horizontal position of the
information in the widget's window.  It can take any of the following
forms:
<P>
<DL class="treeview operations">
<DT><A NAME="M226"><I>pathName </I><B>xview</B></A><DD>
Returns a list containing two elements.
Each element is a real fraction between 0 and 1;  together they describe
the horizontal span that is visible in the window.
For example, if the first element is .2 and the second element is .6,
20% of the <B>treeview</B> widget's text is off-screen to the left, 
the middle 40% is visible
in the window, and 40% of the text is off-screen to the right.
These are the same values passed to scrollbars via the <B>-xscrollcommand</B>
option.
<P><DT><A NAME="M227"><I>pathName </I><B>xview</B> <I>tagOrId</I></A><DD>
Adjusts the view in the window so that the character position given by
<I>tagOrId</I> is displayed at the left edge of the window.
Character positions are defined by the width of the character <B>0</B>.
<P><DT><A NAME="M228"><I>pathName </I><B>xview moveto</B><I> fraction</I></A><DD>
Adjusts the view in the window so that <I>fraction</I> of the
total width of the <B>treeview</B> widget's text is off-screen to the left.
<I>fraction</I> must be a fraction between 0 and 1.
<P><DT><A NAME="M229"><I>pathName </I><B>xview scroll </B><I>number what</I></A><DD>
This command shifts the view in the window left or right according to
<I>number</I> and <I>what</I>.
<I>Number</I> must be an integer.
<I>What</I> must be either <B>units</B> or <B>pages</B> or an abbreviation
of one of these.
If <I>what</I> is <B>units</B>, the view adjusts left or right by
<I>number</I> character units (the width of the <B>0</B> character)
on the display;  if it is <B>pages</B> then the view adjusts by
<I>number</I> screenfuls.
If <I>number</I> is negative then characters farther to the left
become visible;  if it is positive then characters farther to the right
become visible.
<P></DL>
<P><DT><A NAME="M230"><I>pathName </I><B>yview </B><I>?args</I>?</A><DD>
This command is used to query and change the vertical position of the
text in the widget's window.
It can take any of the following forms:
<P>
<DL class="treeview operations">
<DT><A NAME="M231"><I>pathName </I><B>yview</B></A><DD>
Returns a list containing two elements, both of which are real fractions
between 0 and 1.
The first element gives the position of the node at the
top of the window, relative to the widget as a whole (0.5 means
it is halfway through the treeview window, for example).
The second element gives the position of the node just after
the last one in the window, relative to the widget as a whole.
These are the same values passed to scrollbars via the <B>-yscrollcommand</B>
option.
<P><DT><A NAME="M232"><I>pathName </I><B>yview</B> <I>tagOrId</I></A><DD>
Adjusts the view in the window so that the node given by
<I>tagOrId</I> is displayed at the top of the window.
<P><DT><A NAME="M233"><I>pathName </I><B>yview moveto</B><I> fraction</I></A><DD>
Adjusts the view in the window so that the node given by <I>fraction</I>
appears at the top of the window.
<I>Fraction</I> is a fraction between 0 and 1;  0 indicates the first
node, 0.33 indicates the node one-third the
way through the <B>treeview</B> widget, and so on.
<P><DT><A NAME="M234"><I>pathName </I><B>yview scroll </B><I>number what</I></A><DD>
This command adjusts the view in the window up or down according to
<I>number</I> and <I>what</I>.
<I>Number</I> must be an integer.
<I>What</I> must be either <B>units</B> or <B>pages</B>.
If <I>what</I> is <B>units</B>, the view adjusts up or down by
<I>number</I> lines;  if it is <B>pages</B> then
the view adjusts by <I>number</I> screenfuls.
If <I>number</I> is negative then earlier nodes
become visible;  if it is positive then later nodes
become visible.
<P></DL>
<P></DL>
<H3><A NAME="M235">TREEVIEW EDITING</A></H3>
A column of data is editable when  its <B>-edit</B> option is set to True
For column 0, edit changes an entries <I>-label</I> option.
For all other columns, edit will update the <I>-data</I> fields.
Tree data traces can also be used for edit control.
Most of the following applies to textbox styles.
However, combobox and checkbox also generate &lt;&lt;TreeViewEditStart/End&gt;&gt; events
while barbox and windowbox are not editable.
<P>
Text editing is aborted with &lt;Escape&gt; and finished with &lt;Return&gt;.
A newline may be inserted with a &lt;Control-r&gt;.
Native Tk widgets are now used for builtin editing, using the
path <B>$w.edit</B>.
By default an <B><A HREF="../TkCmd/entry.htm">entry</A></B> widget will be used,  however, column editing options
can be changed via <B>-editopts</B>
and <B>-validatecmd</B>. Moreover, columns with a combobox style
can provide popup list of options in a listbox
using the following style options: <B>-choices, -choicecmd -choiceicons</B>
Two virtual events can be used to gain control the during edit:
<I>&lt;&lt;TreeViewEditStart&gt;&gt;</I> and <I>&lt;&lt;TreeViewEditEnd&gt;&gt;</I>.
The column index is passed in %x, and the entry-row index is passed in %y.
eg.
<PRE>treeview .t
bind .t &lt;&lt;TreeViewEditStart&gt;&gt; {EditStart %W %x %y}
bind .t &lt;&lt;TreeViewEditEnd&gt;&gt; {EditEnd %W %x %y}</PRE>
These gain control at the start and end of editing respectively,
and are general alternatives to <I>-editopts</I> -startcmd and -endcmd.
For further details see <I>EditCell</I> in
<B>$blt_library/treeview.tcl</B>.
<H3><A NAME="M236">TREEVIEW OPTIONS</A></H3>
In addition to the <B>configure</B> operation, widget configuration
options may also be set by the Tk <B><A HREF="../TkCmd/option.htm">option</A></B> command.  The class
resource name is <B>TreeView</B>.
<PRE>option add *TreeView.Foreground white
option add *TreeView.Background blue</PRE>
The following widget options are available:
<P>
<DL class="treeview options">
<DT><A NAME="M237"><B>-activeicons </B><I>images</I></A><DD>
Specifies images to be displayed for an entry's icon
when it is active. <I>Images</I> is a list of two Tk images: 
the first image is displayed when the node is open, the
second when it is closed.
<P><DT><A NAME="M238"><B>-activeleaficons </B><I>images</I></A><DD>
Specifies images to be displayed for an leaf entry's icon
when it is active. <I>Images</I> is a list of two Tk images: 
the first image is displayed when the node is open, the
second when it is closed.
<P><DT><A NAME="M239"><B>-allowduplicates </B><I>boolean</I></A><DD>
If <I>boolean</I> is true, allow nodes with duplicate pathnames
when inserting new nodes.  Otherwise flag an error.
The default is <B>no</B>.
<P><DT><A NAME="M240"><B>-altstyle </B><I>stylename</I></A><DD>
Set a style to use on every other row.  This provides a simple way
to implement alternating row colors without explicitly
setting entry options.
<P><DT><A NAME="M241"><B>-autocreate </B><I>boolean</I></A><DD>
If <I>boolean</I> is true, automatically create missing ancestor 
nodes when inserting new nodes. Otherwise flag an error.
The default is <B>no</B>.
<P><DT><A NAME="M242"><B>-background </B><I>color</I></A><DD>
Sets the background color of the widget.  The default is <B>white</B>.
<P><DT><A NAME="M243"><B>-borderwidth </B><I>pixels</I></A><DD>
Sets the width of the 3-D border around the outside edge of the widget.  The
<B>-relief</B> option determines if the border is to be drawn.  The
default is <B>2</B>.
<P><DT><A NAME="M244"><B>-button </B><I>string</I></A><DD>
Indicates whether a entries should display button.
If set to anything other than the default of <I>auto</I>, buttons
will not be displayed.
<P><DT><A NAME="M245"><B>-closecommand </B><I>string</I></A><DD>
Specifies a Tcl script to be invoked when a node is closed.  You can
overrider this for individual entries using the entry's <B>-closecommand</B> 
option. The default is <B>&quot;&quot;</B>.
Percent substitutions are performed on <I>string</I> before 
it is executed.  The following substitutions are valid:
<P>
<DL class="treeview options">
<DT><A NAME="M246"><B>%W</B></A><DD>
The pathname of the widget.
<P><DT><A NAME="M247"><B>%p</B></A><DD>
The name of the node.
<P><DT><A NAME="M248"><B>%P</B></A><DD>
The full pathname of the node.
<P><DT><A NAME="M249"><B>%#</B></A><DD>
The id of the node.
<P><DT><A NAME="M250"><B>%%</B></A><DD>
Translates to a single percent.
<P></DL>
<P><DT><A NAME="M251"><B>-columnshowhighlight </B><I>bool</I></A><DD>
Enable display highlight color when column activated.
Default is false.
<P><DT><A NAME="M252"><B>-cursor </B><I>cursor</I></A><DD>
Specifies the widget's cursor.  The default cursor is <B>&quot;&quot;</B>.
<P><DT><A NAME="M253"><B>-dashes </B><I>number</I></A><DD>
Sets the dash style of the horizontal and vertical lines drawn connecting 
entries. <I>Number</I> is the length in pixels of the dashes and gaps in
the line. If <I>number</I> is <B>0</B>, solid lines will 
be drawn. The default is <B>1</B> (dotted).
<P><DT><A NAME="M254"><B>-emptystyle </B><I>stylename</I></A><DD>
Set a style to be used for empty cells.
<P><DT><A NAME="M255"><B>-entryshowhighlight </B><I>bool</I></A><DD>
Enable display highlight color when entry activated.
Default is false.
<P><DT><A NAME="M256"><B>-exportselection </B><I>boolean</I></A><DD>
Indicates if the selection is exported.  If the widget is exporting its
selection then it will observe the standard X11 protocols for handling
the selection.  Selections are available as type <B><A HREF="../TclCmd/string.htm">STRING</A></B>;
the value of the selection will be the label of the selected nodes,
separated by newlines.  The default is <B>no</B>.
<P><DT><A NAME="M257"><B>-fillnull </B><I>boolean</I></A><DD>
Indicates that empty data columns are to be drawn anyways,
and to apply the <I>-nullstyle</I> if defined.
Turning this off will leave unsightly gaps where attributes (eg. background
and underline) were normally expected to be displayed.
The default is <B>yes</B>.
<P><DT><A NAME="M258"><B>-flat </B><I>boolean</I></A><DD>
Indicates whether to display the tree as a flattened list. 
If <I>boolean</I> is true, then the hierarchy will be a list of full
paths for the nodes.  Hide and show are not supported in flat mode.
This option also has affect on sorting. 
See the 
for more information.
The default is <B>no</B>.
<P><DT><A NAME="M259"><B>-focusdashes </B><I>dashList</I></A><DD>
Sets the dash style of the outline rectangle drawn around the entry
label of the node that current has focus. <I>Number</I> is the length
in pixels of the dashes and gaps in the line.  If
<I>number</I> is <B>0</B>, a solid line will be drawn. The default is
<B>1</B>.
<P><DT><A NAME="M260"><B>-focusforeground </B><I>color</I></A><DD>
Sets the color of the focus rectangle. 
The default is <B>black</B>.
<P><DT><A NAME="M261"><B>-focusheight </B><I>value</I></A><DD>
Set the height in pixels to reserve for focus highlighting above
and below the line.
The default is <B>1</B>, but setting this to 0 will result in a
more compact display.
<P><DT><A NAME="M262"><B>-font </B><I>fontName</I></A><DD>
Specifies the font for entry labels.  You can override this for individual
entries with the entry's <B>-font</B> configuration option.  The default is
<B>*-Helvetica-Bold-R-Normal-*-12-120-*</B>.
<P><DT><A NAME="M263"><B>-foreground </B><I>color</I></A><DD>
Sets the text color of entry labels.  You can override this for individual
entries with the entry's <B>-foreground</B> configuration option.  
The default is
<B>black</B>.
<P><DT><A NAME="M264"><B>-height </B><I>pixels</I></A><DD>
Specifies the requested height of widget.  The default is
<B>400</B>.
<P><DT><A NAME="M265"><B>-hidedataicons </B><I>boolean</I></A><DD>
If <I>boolean</I> is true, it indicates that data column icons
(set via styles)
should not be displayed.  The default is <B>no</B>.
<P><DT><A NAME="M266"><B>-hidedatatext </B><I>boolean</I></A><DD>
If <I>boolean</I> is true, it indicates that that data column text
should not be displayed.  The default is <B>no</B>.
<P><DT><A NAME="M267"><B>-hideicons </B><I>boolean</I></A><DD>
If <I>boolean</I> is true, it indicates that tree column icons
should not be displayed.  The default is <B>no</B>.
<P><DT><A NAME="M268"><B>-hideleaves </B><I>boolean</I></A><DD>
If <I>boolean</I> is true, it indicates that no leaves
should be displayed.  The default is <B>no</B>.
<P><DT><A NAME="M269"><B>-hideroot </B><I>boolean</I></A><DD>
If <I>boolean</I> is true, it indicates that no entry for the root node 
should be displayed.  The default is <B>no</B>.
<P><DT><A NAME="M270"><B>-highlightbackground  </B><I>color</I></A><DD>
Specifies the normal color of the traversal highlight region when
the widget does not have the input focus.  
<P><DT><A NAME="M271"><B>-highlightcolor </B><I>color</I></A><DD>
Specifies the color of the traversal highlight rectangle when
the widget has the input focus. 
The default is <B>black</B>.
<P><DT><A NAME="M272"><B>-highlightthickness </B><I>pixels</I></A><DD>
Specifies the width of the highlight rectangle indicating when the
widget has input focus. The value may have any of the forms acceptable
to <B><A HREF="../TkLib/GetPixels.htm">Tk_GetPixels</A></B>.  If the value is zero, no focus highlight will
be displayed.  The default is <B>2</B>.
<P><DT><A NAME="M273"><B>-icons </B><I>images</I></A><DD>
Specifies images for the entry's icon.
<I>Images</I> is a list of two Tk images: 
the first image is displayed when the node is open, the
second when it is closed.
<P><DT><A NAME="M274"><B>-imagecmd </B><I>scriptcmd</I></A><DD>
Specifies a command to call the first time an image is displayed.
This handles all images used in any of the <B>-images</B>, <B>-*icon</B>,
and <B>-*icons</B> options.
Percent substitutions is performed on <I>scriptcmd</I> as per <I>find -exec</I>,
with the image name being used as the value (%V).
The main use of <B>-imagecmd</B> is to defer loading images
until they become visible for the first time.  Typically this means
icons options are set with blank images which as they become visible
the callback replaces with a real image.
<P><DT><A NAME="M275"><B>-inlinedata </B><I>bool</I></A><DD>
Enables that data column values that start with a <B>@</B> and are
a list of length 2, are to be interpreted as
an inline style or image name.
If value is the name of an image, a style is created
using the name of image with -icon set to that image.
A style is applied to the cell in the manner of <B>style set</B>.
Default is <I>true</I>.
<P><DT><A NAME="M276"><B>-insertfirst</B><I>num</I></A><DD>
Upon inserts use forward search of tree label for num elements,
then fall back to a reverse search. The default is 1,
which provides for very fast insertions
at the begining or near the end of really long trees.
Set to -1 for forward search only, for example, if using <I>-allowduplicates</I>.
<P><DT><A NAME="M277"><B>-leaficons </B><I>images</I></A><DD>
Specifies images for a leaf entry's icons.
<I>Images</I> is a list of two Tk images: 
the first image is displayed when the node is open, the
second when it is closed.
<P><DT><A NAME="M278"><B>-levelpad </B><I>pixels</I></A><DD>
Indentation to add when displaying sub-tree levels.
<P><DT><A NAME="M279"><B>-levelstyles </B><I>stylenames</I></A><DD>
Set a list of styles to use for entries at a given level.
The first style is used for entries at level 1, the second for level 2, etc.
This provides a simple way
to specify colors for entries at a given level without explicitly
setting entry options.
<P><DT><A NAME="M280"><B>-linecolor </B><I>color</I></A><DD>
Sets the color of the connecting lines drawn between entries.  
The default is <B>black</B>.
<P><DT><A NAME="M281"><B>-linespacing </B><I>pixels</I></A><DD>
Sets the number of pixels spacing between entries.  
The default is <B>0</B>.
<P><DT><A NAME="M282"><B>-linewidth </B><I>pixels</I></A><DD>
Set the width of the lines drawn connecting entries.  If <I>pixels</I>
is <B>0</B>, no vertical or horizontal lines are drawn. 
The default is <B>1</B>.
<P><DT><A NAME="M283"><B>-minheight </B><I>pixels</I></A><DD>
Set the minimum height for entries.  Default is <I>0</I>.
<P><DT><A NAME="M284"><B>-nextauto</B><I>num</I></A><DD>
For inserts at the root node, the start number for the next #auto insert.
This is automatically incremented at each insert which
speeds up bulk #auto inserts.
<P><DT><A NAME="M285"><B>-nextsubauto</B><I>num</I></A><DD>
For inserts not into the root node, the number
the next child #auto insert starts it's search from.
The default is <B>1</B>.
<P><DT><A NAME="M286"><B>-newtags </B><I>boolean</I></A><DD>
If <I>boolean</I> is true, when sharing a tree object (see the
<B>-tree</B> option), don't share its tags too.  
The default is <B>0</B>.
<P><DT><A NAME="M287"><B>-noautocloseleaf </B><I>boolean</I></A><DD>
If <I>boolean</I> is true, then opening a leaf node will leave it in
open mode.  The default is <B>false</B>, which automatically sets the
mode of a leaf node back to closed without invoking <B>-closecommand</B>.
<P><DT><A NAME="M288"><B>-nofocusselectbackground </B><I>color</I></A><DD>
Background select color when focus lost.
<P><DT><A NAME="M289"><B>-nofocusselectforeground </B><I>color</I></A><DD>
Foreground select color when focus lost.
<P><DT><A NAME="M290"><B>-openanchor </B><I>string</I></A><DD>
When a node with children is opened, defines the -anchor used
to the see sub-command.  Must be one of: <B>n c s</B>.
The default is <B>c</B>.
<P><DT><A NAME="M291"><B>-opencommand </B><I>string</I></A><DD>
Specifies a Tcl script to be invoked when a node is open.  
You can override this for individual entries with the entry's
<B>-opencommand</B> configuration option.  The default is <B>&quot;&quot;</B>.
Percent substitutions are performed on <I>string</I> before 
it is executed.  The following substitutions are valid:
<P>
<DL class="treeview options">
<DT><A NAME="M292"><B>%W</B></A><DD>
The pathname of the widget.
<P><DT><A NAME="M293"><B>%p</B></A><DD>
The name of the node.
<P><DT><A NAME="M294"><B>%P</B></A><DD>
The full pathname of the node.
<P><DT><A NAME="M295"><B>%#</B></A><DD>
The id of the node.
<P><DT><A NAME="M296"><B>%%</B></A><DD>
Translates to a single percent.
<P></DL>
<P><DT><A NAME="M297"><B>-relief </B><I>relief</I></A><DD>
Specifies the 3-D effect for the widget.  <I>Relief</I>
specifies how the <B>treeview</B> widget should appear relative to widget 
it is packed into; for example, <B>raised</B> means the <B>treeview</B> widget 
should appear to protrude.  The default is <B>sunken</B>.
<P><DT><A NAME="M298"><B>-resizecursor </B><I>string</I></A><DD>
Cursor to use on resize.
<P><DT><A NAME="M299"><B>-rootnode </B><I>num</I></A><DD>
Specifiy the node number that is to be the root.
This allows a subtree to appear as the root.
Multiple treeviews may share a tree with different root nodes,
and thus supporting subviews.  Default is 0.
<P><DT><A NAME="M300"><B>-scrollmode </B><I>mode</I></A><DD>
Specifies the style of scrolling to be used.
There are three different modes of scrolling: <B><A HREF="../TkCmd/listbox.htm">listbox</A></B>,
<B><A HREF="../TkCmd/canvas.htm">canvas</A></B>, and <B>hierbox</B>.  In <B><A HREF="../TkCmd/listbox.htm">listbox</A></B> mode, the last
entry can always be scrolled to the top of the widget.  In <B>hierbox</B>
mode, the last entry is always drawn at the bottom of the widget.
The default is <B>hierbox</B>.
<P>
<DL class="treeview options">
<DT><A NAME="M301"><B>listbox</B></A><DD>
Like the <B><A HREF="../TkCmd/listbox.htm">listbox</A></B> widget, the last entry can always be
scrolled to the top of the widget window.  This allows the scrollbar
thumb to shrink as the last entry is scrolled upward.
<P><DT><A NAME="M302"><B>hierbox</B></A><DD>
Like the <B>hierbox</B> widget, the last entry can only be
viewed at the bottom of the widget window.  The scrollbar
stays a constant size.  
<P><DT><A NAME="M303"><B>canvas</B></A><DD>
Like the <B><A HREF="../TkCmd/canvas.htm">canvas</A></B> widget, the entries are bound within
the scrolling area. 
<P></DL>
<P><DT><A NAME="M304"><B>-scrolltile </B><I>bool</I></A><DD>
Specifies if tiling should scroll with widget.
The default is <B>false</B>.
<P><DT><A NAME="M305"><B>-selectbackground </B><I>color</I></A><DD>
Sets the background color selected node entries.
The default is <B>#ffffea</B>.
<P><DT><A NAME="M306"><B>-selectborderwidth </B><I>pixels</I></A><DD>
Sets the width of the raised 3-D border drawn around the labels 
of selected entries. The default is <B>0</B>.
<P><DT><A NAME="M307"><B>-selectcommand </B><I>string</I></A><DD>
Specifies a Tcl script to invoked when the set of selected
nodes changes.
The default is <B>&quot;&quot;</B>.
<P><DT><A NAME="M308"><B>-selectforeground</B> <I>color</I>&#92;fB</A><DD>
Sets the color of the labels of selected node entries while the
widget has focus. 
The default is <B>black</B>.
<P><DT><A NAME="M309"><B>-selectmode </B><I>mode</I></A><DD>
Specifies the selection mode. If <I>mode</I> is 
<B>single</B>, only one node can be selected
at a time.  If <B>multiple</B> more than one
node can be selected.
If <B>none</B> no selection is displayed.
If <I>cell</I> or <I>multicell</I> then selection is for cells
rather than whole nodes (rows).
The default is <B>single</B>.
<P><DT><A NAME="M310"><B>-selectrelief </B><I>relief</I></A><DD>
Specifies the 3-D effect of the selected text in the edit window.  
<I>Relief</I> indicates how the text should appear relative to the edit
window; for example, <B>raised</B> means the text should
appear to protrude.  The default is <B>flat</B>.
<P><DT><A NAME="M311"><B>-selecttile </B><I>image</I></A><DD>
Set a tile background image to use for selection.
<P><DT><A NAME="M312"><B>-separator </B><I>string</I></A><DD>
Specifies the character sequence to use when spliting the path components.  
The separator may be several characters wide (such as &quot;::&quot;)
Consecutive separators in a pathname are treated as one.
If <I>string</I> is the empty string, the pathnames are Tcl lists. 
If <I>string</I> is the <B>none</B>, no splitting will is done.
Each element is a path component.   The default is <B>&quot;&quot;</B>.
<P><DT><A NAME="M313"><B>-showfull </B><I>boolean</I></A><DD>
Show full path name when in <B>-flat</B> mode.
The default is <I>true</I>.
<P><DT><A NAME="M314"><B>-showtitles </B><I>boolean</I></A><DD>
If <I>boolean</I> is false, column titles are not be displayed.  
The default is <B>yes</B>.
<P><DT><A NAME="M315"><B>-sortselection </B><I>boolean</I></A><DD>
If <I>boolean</I> is true, nodes in the selection are ordered as they
are currently displayed (depth-first or sorted), not in the order
they were selected. The default is <B>no</B>.
<P><DT><A NAME="M316"><B>-stylecommand </B><I>string</I></A><DD>
Specifies a Tcl command to call when handling
data of the form 
a <I>@style string</I>.
The called command is expected to create 
the new style.
This overrides the default behavior of creating a style with
the same name as the image passed after the @ sign
(see the <I>-inlinedata</I> option).
The call performs the same substitutions as <I>-exec</I> option of
the <B>find</B> command.
<P><DT><A NAME="M317"><B>-substyle </B><I>stylename</I></A><DD>
Set a style for use with the <B>-sublabel</B>.
Note: you can hide all <I>sublabels</I> by using a style
with the <B>-hide</B> option set.
<P><DT><A NAME="M318"><B>-takefocus</B> <I>focus</I></A><DD>
Provides information used when moving the focus from window to window
via keyboard traversal (e.g., Tab and Shift-Tab).  If <I>focus</I> is
<B>0</B>, this means that this window should be skipped entirely during
keyboard traversal.  <B>1</B> means that the this window should always
receive the input focus.  An empty value means that the traversal
scripts make the decision whether to focus on the window.
The default is <B>&quot;1&quot;</B>.
<P><DT><A NAME="M319"><B>-tile </B><I>image</I></A><DD>
Set background tile image.
<P><DT><A NAME="M320"><B>-titlefont </B><I>font</I></A><DD>
Font to use for titles.
<P><DT><A NAME="M321"><B>-titlepad </B><I>N</I></A><DD>
Pad to add above and below title.
<P><DT><A NAME="M322"><B>-tree </B><I>tree</I></A><DD>
Use an externally created data <I>tree</I> object.
Using a <B><A HREF="../TclCmd/tree.htm">tree</A></B> command facilitates data access, tracing, and
loading/saving. eg.
<PRE>set t [tree create]
  set n 0
  while {[incr n]&lt;30000} {
     $t insert end -data {A 0 B 0}
  }
  pack [treeview .tv -tree $t]
  .tv column insert end A B</PRE>
<P><DT><A NAME="M323"><B>-trim </B><I>string</I></A><DD>
Specifies a string leading characters to trim from entry pathnames 
before parsing.  This only makes sense if the <B>-separator</B> is also
set.  The default is <B>&quot;&quot;</B>.
<P><DT><A NAME="M324"><B>-underline </B><I>height</I></A><DD>
Draw an underline of the given height below each entry across its entire width.
Use in conjunction with column reliefs this provides a grid like effect.
The default height is 0.
<P><DT><A NAME="M325"><B>-width </B><I>pixels</I></A><DD>
Sets the requested width of the widget.  If <I>pixels</I> is 0, then
the with is computed from the contents of the <B>treeview</B> widget.
The default is <B>200</B>.
<P><DT><A NAME="M326"><B>-xscrollcommand </B><I>string</I></A><DD>
Specifies the prefix for a command used to communicate with horizontal
scrollbars.  Whenever the horizontal view in the widget's window 
changes, the widget will generate a Tcl command by concatenating the 
scroll command and two numbers.  If this option is not specified, then 
no command will be executed.
<P><DT><A NAME="M327"><B>-xscrollincrement</B> <I>pixels</I></A><DD>
Sets the horizontal scrolling distance. The default is 20 pixels.
<P><DT><A NAME="M328"><B>-yscrollcommand </B><I>string</I></A><DD>
Specifies the prefix for a command used to communicate with vertical
scrollbars.   Whenever the vertical view in the widget's window 
changes, the widget will generate a Tcl command by concatenating the 
scroll command and two numbers.  If this option is not specified, then 
no command will be executed.
<P><DT><A NAME="M329"><B>-yscrollincrement</B> <I>pixels</I></A><DD>
Sets the vertical scrolling distance. The default is 20 pixels.
<P></DL>
<H3><A NAME="M330">ENTRY OPTIONS</A></H3>
Many widget configuration options have counterparts in entries.  For
example, there is a <B>-closecommand</B> configuration option for both
widget itself and for individual entries.  Options set at the widget
level are global for all entries.  If the entry configuration option
is set, then it overrides the widget option.  This is done to avoid
wasting memory by replicated options.  Most entries will have
redundant options.
<P>
There is no resource class or name for entries.
<P>
<DL class="entry options">
<DT><A NAME="M331"><B>-activeicons </B><I>images</I></A><DD>
Specifies images to be displayed as the entry's icon
when it is active. This overrides the global <B>-activeicons</B>
configuration option for the specific entry.
<I>Images</I> is a list of two Tk images: 
the first image is displayed when the node is open, the
second when it is closed.
<P><DT><A NAME="M332"><B>-bindtags </B><I>tagList</I></A><DD>
Specifies the binding tags for nodes.  <I>TagList</I> is a list
of binding tag names.  The tags and their order will determine how
events are handled for nodes.  Each tag in the list matching the current 
event sequence will have its Tcl command executed.  The default value 
is <B>all</B>.
<P><DT><A NAME="M333"><B>-button </B><I>string</I></A><DD>
Indicates whether a button should be displayed on the left side
of the node entry.  <I>String</I> can be <B>yes</B>, <B>no</B>, 
or <B>auto</B>.  If <B>auto</B>, then a button is automatically
displayed if the node has children.  This is the default.
<P><DT><A NAME="M334"><B>-closecommand </B><I>string</I></A><DD>
Specifies a Tcl script to be invoked when the node is closed.  This
overrides the global <B>-closecommand</B> option for this entry.
The default is <B>&quot;&quot;</B>.
Percent substitutions are performed on <I>string</I> before 
it is executed.  The following substitutions are valid:
<P>
<DL class="entry options">
<DT><A NAME="M335"><B>%W</B></A><DD>
The pathname of the widget.
<P><DT><A NAME="M336"><B>%p</B></A><DD>
The name of the node.
<P><DT><A NAME="M337"><B>%P</B></A><DD>
The full pathname of the node.
<P><DT><A NAME="M338"><B>%#</B></A><DD>
The id of the node.
<P><DT><A NAME="M339"><B>%%</B></A><DD>
Translates to a single percent.
<P></DL>
<P><DT><A NAME="M340"><B>-data </B><I>list</I></A><DD>
Initializes or change data fields for the node.  <I>List</I> is a list of 
name-value pairs to be set.  Note, this can not be used to unset or
forget values for columns, meaning an empty list does nothing.
For unsetting use <B>entry unset</B>.
The default is <B>&quot;&quot;</B>.
<P><DT><A NAME="M341"><B>-font </B><I>fontName</I></A><DD>
Sets the font for entry labels.  This overrides the widget's
<B>-font</B> option for this node.  The default is
<B>*-Helvetica-Bold-R-Normal-*-12-120-*</B>.
<P><DT><A NAME="M342"><B>-forcetree </B><I>bool</I></A><DD>
Force node to be treated as a tree, even if it has no children.
This differs from <I>-button</I> above in that all drawing
and querying aspects of the node are treated as a tree.
This option is useful primarily for deferring loading until a tree is opened.
The default is <B>false</B>.
<P><DT><A NAME="M343"><B>-foreground </B><I>color</I></A><DD>
Sets the text color of the entry label.  This overrides the widget's
<B>-foreground</B> configuration option.  The default is <B>&quot;&quot;</B>.
<P><DT><A NAME="M344"><B>-height </B><I>num</I></A><DD>
Set height for entry.
<P><DT><A NAME="M345"><B>-hide </B><I>bool</I></A><DD>
Hide the entry.
<P><DT><A NAME="M346"><B>-icons </B><I>images</I></A><DD>
Specifies images to be displayed for the entry's icon.
This overrides the global <B>-icons</B> configuration option.
<I>Images</I> is a list of two Tk images: 
the first image is displayed when the node is open, the
second when it is closed.
<P><DT><A NAME="M347"><B>-label </B><I>string</I></A><DD>
Sets the text for the entry's displayed label.
If set to  <B>&quot;&quot;</B>, the label of the tree node is displayed
The default is <B>&quot;&quot;</B>  (see <B>entry relabel</B>).
<P><DT><A NAME="M348"><B>-opencommand </B><I>string</I></A><DD>
Specifies a Tcl script to be invoked when the entry is opened.  
This overrides the widget's <B>-opencommand</B> option for this node.  
The default is <B>&quot;&quot;</B>. 
Percent substitutions are performed on <I>string</I> before 
it is executed.  The following substitutions are valid:
<P>
<DL class="entry options">
<DT><A NAME="M349"><B>%W</B></A><DD>
The pathname of the widget.
<P><DT><A NAME="M350"><B>%p</B></A><DD>
The name of the node.
<P><DT><A NAME="M351"><B>%P</B></A><DD>
The full pathname of the node.
<P><DT><A NAME="M352"><B>%#</B></A><DD>
The id of the node.
<P><DT><A NAME="M353"><B>%%</B></A><DD>
Translates to a single percent.
<P></DL>
<P><DT><A NAME="M354"><B>-shadow </B><I>color</I></A><DD>
Set shadow color for text.
<P><DT><A NAME="M355"><B>-state </B><I>value</I></A><DD>
Set the state of the entry where <I>value</I> is one of:
<B>normal</B>, <B>active</B>, <B>disabled</B>.
The default state is <B>normal</B>.
When the state is set to <B>disabled</B>, the text color
displays using <B>-disabledforeground</B> and the
node ignores any attempted <B><A HREF="../TclCmd/open.htm">open</A></B> or <B><A HREF="../TclCmd/close.htm">close</A></B>.
<P><DT><A NAME="M356"><B>-style </B><I>stylename</I></A><DD>
Set the style to use for the entry. This will override the column
style, just as <I>style set</I> will override an entry style.
This is useful mostly for seting bg/fg/font
for a row.  Other options may or may not do nothing.
Note, setting icon in a style will apply to all value
columns, but not the tree column.
<P><DT><A NAME="M357"><B>-sublabel </B><I>string</I></A><DD>
Sets the text for the entry's sub-label to be displayed to the right
of the nodes <B>-label</B> value.  This is rendered using the
<B>-substyle</B> style.
<P><DT><A NAME="M358"><B>-underline </B><I>num</I></A><DD>
Character to underline in an entries text label.  Default is -1.
<P><DT><A NAME="M359"><B>-userdata </B><I>list</I></A><DD>
Extra space available for storing user data.
<P></DL>
<H3><A NAME="M360">BUTTON OPTIONS</A></H3>
Button configuration options may also be set by the <B><A HREF="../TkCmd/option.htm">option</A></B> command.
The resource subclass is <B><A HREF="../TkCmd/button.htm">Button</A></B>.   The resource name is always
<B><A HREF="../TkCmd/button.htm">button</A></B>.
<PRE>option add *TreeView.Button.Foreground white
option add *TreeView.button.Background blue</PRE>
The following are the configuration options available for buttons.
<P>
<DL class="button options">
<DT><A NAME="M361"><B>-activebackground </B><I>color</I></A><DD>
Sets the background color of active buttons.  A button
is made active when the mouse passes over it or by the 
<B>button activate</B> operation.  
<P><DT><A NAME="M362"><B>-activeforeground </B><I>color</I></A><DD>
Sets the foreground color of active buttons.  A button
is made active when the mouse passes over it or by the 
<B>button activate</B> operation.  
<P><DT><A NAME="M363"><B>-background </B><I>color</I></A><DD>
Sets the background of the button.  The default is <B>white</B>.
<P><DT><A NAME="M364"><B>-borderwidth </B><I>pixels</I></A><DD>
Sets the width of the 3-D border around the button.  
The <B>-relief</B> option determines if a border is to be drawn.  The
default is <B>1</B>.
<P><DT><A NAME="M365"><B>-closerelief </B><I>relief</I></A><DD>
Specifies the 3-D effect for the closed button.  <I>Relief</I>
indicates how the button should appear relative to the widget; 
for example, <B>raised</B> means the button should
appear to protrude.  The default is <B>solid</B>.
<P><DT><A NAME="M366"><B>-cursor </B><I>cursor</I></A><DD>
Sets the widget's cursor.  The default cursor is <B>&quot;&quot;</B>.
<P><DT><A NAME="M367"><B>-foreground </B><I>color</I></A><DD>
Sets the foreground color of buttons. 
The default is <B>black</B>.
<P><DT><A NAME="M368"><B>-images </B><I>images</I></A><DD>
Specifies images to be displayed for the button.
<I>Images</I> is a list of two Tk images: 
the first image is displayed when the button is open, the
second when it is closed.  If the <I>images</I> is the empty string,
then a plus/minus gadget is drawn.  The default is <B>&quot;&quot;</B>.
<P><DT><A NAME="M369"><B>-openrelief </B><I>relief</I></A><DD>
Specifies the 3-D effect of the open button.  <I>Relief</I>
indicates how the button should appear relative to the widget; 
for example, <B>raised</B> means the button should
appear to protrude.  The default is <B>flat</B>.
<P><DT><A NAME="M370"><B>-size </B><I>pixels</I></A><DD>
Sets the requested size of the button.  
The default is <B>0</B>.
<P></DL>
<H3><A NAME="M371">STYLE OPTIONS</A></H3>
Five types of styles are defined: <B>textbox, combobox, checkbox, barbox, windowbox</B>.
A <B>barbox</B> provides a progressbar for the values of cells,
and accepts any data that begins with a numeric (eg. &quot;34%&quot;).
The special style <B>windowbox</B> supports embedded subwindows within data
cells.
<P>
The resource subclass is the name of the style, titlized, ie.
<PRE>option add *TreeView.TextBoxStyle.tvBackground white
option add *TreeView.ComboBoxStyle.tvBackground green
option add *TreeView.CheckBoxStyle.tvBackground blue</PRE>
A default textbox style <I>text</I> comes predefined and is set for
each columns <I>-style</I> option.
Styles may also be associated with
entry-rows and/or cells, as follows:
<P>
<PRE>treeview .t -width 300 -height 200
pack .t -fill both -expand y
 .t col insert end Size Age Weight
 .t style create combobox MyStyle0 -bg red
 .t style create textbox MyStyle1 -bg blue
 .t style create textbox MyStyle2 -bg green
 .t style create textbox MyStyle3 -bg orange

 .t col conf Size -style MyStyle0
 foreach i {Able Baker Charlie} {
  .t insert end $i -data {Size 1 Age 2 Weight 3}
 }
 .t entry conf 2 -style MyStyle2
 .t style set MyStyle3 Weight 3
 .t insert end Empty
 .t conf -emptystyle MyStyle1</PRE>
<P>
See also the widget options <I>-altstyle</I>, <I>-emptystyle</I> and <I>-levelstyles</I>.
The following are available for all but the windowbox type.
Note, some of these options are utilized only in particular contexts:
<P>
<DL class="style options">
<DT><A NAME="M372"><B>-activebackground </B><I>color</I></A><DD>
Specifies the active background color of a style. 
Alias is <B>-activebg</B>.
<P><DT><A NAME="M373"><B>-activeforeground </B><I>color</I></A><DD>
Specifies the active foreground color of a style. 
Alias is <B>-activefg</B>.
<P><DT><A NAME="M374"><B>-background </B><I>color</I></A><DD>
Background color override.  Default is empty.
<P><DT><A NAME="M375"><B>-cursor </B><I>cursorname</I></A><DD>
Specifies the cursor of a style. This cursor for the widget when an
element is activated.
<P><DT><A NAME="M376"><B>-font </B><I>fontName</I></A><DD>
Sets the font for a style.
<P><DT><A NAME="M377"><B>-foreground </B><I>color</I></A><DD>
Specifies the foreground color of a style. 
Alias is <B>-fg</B>.
<P><DT><A NAME="M378"><B>-gap </B><I>N</I></A><DD>
Specifies the gap.
<P><DT><A NAME="M379"><B>-hide </B><I>bool</I></A><DD>
Values or subtext having a style with hide on are to be hidden.
Columns and entries are unaffected.
<P><DT><A NAME="M380"><B>-highlightbackground </B><I>color</I></A><DD>
Specifies the highlight background color of a style. 
Alias is <B>-highlightbg</B>.
<P><DT><A NAME="M381"><B>-highlightforeground </B><I>color</I></A><DD>
Specifies the highlight foreground color of a style. 
Alias is <B>-highlightfg</B>.
<P><DT><A NAME="M382"><B>-icon </B><I>name</I></A><DD>
Specifies the icon.
<P><DT><A NAME="M383"><B>-priority</B> <I>N</I></A><DD>
Specifies a priority for the style.  Higher priorities
are used for overriding bg/fg/font.  The default 0.
<P><DT><A NAME="M384"><B>-shadow </B><I>shadow</I></A><DD>
Set shadow.
<P><DT><A NAME="M385"><B>-tile </B><I>img</I></A><DD>
Set tiling.
<P><DT><A NAME="M386">The following additional configuration options are available for textbox:</A><DD>
<P><DT><A NAME="M387"><B>-formatcmd </B><I>scriptcmd</I></A><DD>
Command called to format the displayed key-data value.
Percent substitutions are performed on <I>scriptcmd</I> as per <I>find -exec</I>.
The called command returns the value to be displayed.
<P><DT><A NAME="M388"><B>-iconside </B><I>N</I></A><DD>
Specifies which side of the text the icon is placed.  Default is left.
<P><DT><A NAME="M389"><B>-side </B><I>N</I></A><DD>
Specifies which side of cell to anchor contents.  Default is top.
<P><DT><A NAME="M390">The following additional configuration options are available for combobox:</A><DD>
<P><DT><A NAME="M391"><B>-borderwidth </B><I>pixel</I></A><DD>
Size of border.
<P><DT><A NAME="M392"><B>-buttonborderwidth </B><I>pixel</I></A><DD>
Size of buttons border
<P><DT><A NAME="M393"><B>-buttonrelief </B><I>relief</I></A><DD>
Relief of button.
<P><DT><A NAME="M394"><B>-choicecmd </B><I>cmd</I></A><DD>
Command called to get the list of choices for editing,
after the following substitutions: <B>%X %Y %C %# %W %%</B>.
Used by the library proc <I>blt::tv::EditCell</I> which
implements builtin editing.
<P><DT><A NAME="M395"><B>-choices </B><I>lst</I></A><DD>
A list of choices for editing.
<P><DT><A NAME="M396">The following additional configuration options are available for checkbox:</A><DD>
<P><DT><A NAME="M397"><B>-boxcolor </B><I>color</I></A><DD>
Color of box.
<P><DT><A NAME="M398"><B>-boxsize </B><I>num</I></A><DD>
Size of box.
<P><DT><A NAME="M399"><B>-checkcolor </B><I>color</I></A><DD>
Color of check.
<P><DT><A NAME="M400"><B>-fillcolor </B><I>color</I></A><DD>
Color of fill.
<P><DT><A NAME="M401"><B>-linewidth </B><I>num</I></A><DD>
Line size.
<P><DT><A NAME="M402"><B>-offvalue </B><I>val</I></A><DD>
Value representing off.
<P><DT><A NAME="M403"><B>-onvalue </B><I>val</I></A><DD>
Value representing on.
<P><DT><A NAME="M404"><B>-showvalue </B><I>bool</I></A><DD>
Show value as well..
<P><DT><A NAME="M405">The following additional configuration options are available for barbox:</A><DD>
<P><DT><A NAME="M406"><B>-barbg </B><I>color</I></A><DD>
Color for the background of the bar.
Default is the empty string.
<P><DT><A NAME="M407"><B>-boxcolor </B><I>color</I></A><DD>
Color of box around bar.
<P><DT><A NAME="M408"><B>-barfg </B><I>color</I></A><DD>
Color for the foreground of the bar.
Default is green.
<P><DT><A NAME="M409"><B>-barheight </B><I>num</I></A><DD>
Height of bar.  Default 10.
<P><DT><A NAME="M410"><B>-barwidth </B><I>num</I></A><DD>
Width of bar.  Default 80.
<P><DT><A NAME="M411"><B>-filltile </B><I>tile</I></A><DD>
Image to tile-fill bar with.
<P><DT><A NAME="M412"><B>-formatcmd </B><I>scriptcmd</I></A><DD>
Command called to format the displayed value.
Percent substitutions are performed on <I>scriptcmd</I> as per <I>find -exec</I>.
The called command returns the value to be displayed.
<P><DT><A NAME="M413"><B>-linewidth </B><I>num</I></A><DD>
Width of border around the bar.  Default is 1.
<P><DT><A NAME="M414"><B>-maxvalue </B><I>val</I></A><DD>
The maxiumum value.  Default is 100.0.
<P><DT><A NAME="M415"><B>-minvalue </B><I>val</I></A><DD>
The miniumum value.  Default is 0.0.
<P><DT><A NAME="M416"><B>-showvalue </B><I>bool</I></A><DD>
Show the numeric value.
<P><DT><A NAME="M417">Only the following configuration options are available with windowbox:</A><DD>
<P><DT><A NAME="M418"><B>-minheight </B><I>num</I></A><DD>
Minimum height of window.
Window height will be taller if the
the entry height is greater than num.
Default is 0.
<P><DT><A NAME="M419"><B>-minwidth </B><I>num</I></A><DD>
Minimum width of window.  Window width will be wider if the
the column width is greater than num.
Default is 0.
<P><DT><A NAME="M420"><B>-windowcmd </B><I>string</I></A><DD>
Command invoked to return window path.  The default is an empty string,
which means data in the cell contains the pathname of a widget to use.
Percent substitutions are performed on <I>string</I> before 
it is executed.  The following substitutions are valid:
<P>
<DL class="style options">
<DT><A NAME="M421"><B>%W</B></A><DD>
The pathname of the widget.
<P><DT><A NAME="M422"><B>%p</B></A><DD>
The name of the node.
<P><DT><A NAME="M423"><B>%P</B></A><DD>
The full pathname of the node.
<P><DT><A NAME="M424"><B>%#</B></A><DD>
The id of the node.
<P><DT><A NAME="M425"><B>%C</B></A><DD>
The column identifier.
<P><DT><A NAME="M426"><B>%%</B></A><DD>
Translates to a single percent.
<P></DL>
<P></DL>
<H3><A NAME="M427">COLUMN OPTIONS</A></H3>
Column configuration options may also be set by the <B><A HREF="../TkCmd/option.htm">option</A></B> command.
The resource subclass is <B>Column</B>.   The resource name is the 
name of the column.
<PRE>option add *TreeView.Column.Foreground white
option add *TreeView.treeView.Background blue</PRE>
The following configuration options are available for columns.
<P>
<DL class="column options">
<DT><A NAME="M428"><B>-activetitlebackground </B><I>color</I></A><DD>
Active title background color.
<P><DT><A NAME="M429"><B>-activetitleforeground </B><I>color</I></A><DD>
Active title foreground color.
<P><DT><A NAME="M430"><B>-autowidth </B><I>value</I></A><DD>
If the maximum width of a column exceeds the given
value, then the column width uses this value instead <B>-width</B>.
When value is zero or <B>-width</B> is non-zero, has no effect.
Allows setting a default column width limit, while still
permitting the user to manually resize larger (unlike <B>-max</B>).
The default value is 0.
<P><DT><A NAME="M431"><B>-background </B><I>color</I></A><DD>
Sets the background color of the column.  This overrides
the widget's <B>-background</B> option. The default is <B>white</B>.
<P><DT><A NAME="M432"><B>-bindtags </B><I>string</I></A><DD>
Set binding tags for column.
<P><DT><A NAME="M433"><B>-borderwidth </B><I>pixels</I></A><DD>
Sets the width of the 3-D border of the column.  
The <B>-relief</B> option determines if a border is to be drawn.  The
default is <B>0</B>.
<P><DT><A NAME="M434"><B>-colorpattern </B><I>patcolors</I></A><DD>
Alter foreground color based on a string match against the cell data value.
Pattern/color pairs are specified in <I>patcolors</I>.
If the pattern matches, then color becomes the foreground
the data cell.
This provides a low-overhead way to display different colors
depending only on the form of data.
<P><DT><A NAME="M435"><B>-colorregexp </B><I>patcolors</I></A><DD>
Does the same thing as <B>-colorpattern</B>, except uses
regexp instead, and has a lower priority.
<P><DT><A NAME="M436"><B>-command </B><I>string</I></A><DD>
Set command for use by <B>invoke</B>.  This is called everytime the column
is selected.  For example, sortable columns can
be enabled by a setting this to <I>{blt::tv::SortColumn %W %C}</I>,
or sort tree children of with <I>{blt::tv::SortTree %W %C}</I>.
Note that SortColumn can temporarily change the treeview mode to -flat.
The following substitutions are valid:
<P>
<DL class="column options">
<DT><A NAME="M437"><B>%W</B></A><DD>
The pathname of the widget.
<P><DT><A NAME="M438"><B>%C</B></A><DD>
The column identifier.
<P><DT><A NAME="M439"><B>%%</B></A><DD>
Translates to a single percent.
<P></DL>
<P><DT><A NAME="M440"><B>-edit </B><I>num</I></A><DD>
Indicates if the column's data fields can be edited
via the builtin editing facility. If <I>num</I> is 
True the data fields in the column can be edited.
The default is <B>False</B>.
<P><DT><A NAME="M441"><B>-editopts </B><I>values</I></A><DD>
Sub-option pair settings for the builtin text edit facilty implemented by
<I>::blt::tv::EditCol</I>.
By default editing uses a Tk <I>entry</I> widget.
However, one using either -auto or -widget herein can modify this
behavior.
Following is partial documentation: see <I>::blt::tv::EditCol</I> in
<I>$blt_library/treeview.tcl</I> for full details.
<P>
<DL class="column options">
<DT><A NAME="M442"><I>-auto bool</I></A><DD>
Automatically use either an entry, spinbox or text as appropriate.
The default is to use an entry widget.
Text containing newlines will use a text widget.
A column with combobox style where -choices or -choicecmd is set will use
a spinbox.
<P><DT><A NAME="M443"><I>-editcmd cmd</I></A><DD>
Command called to get options.  Called with 3 args: widget ind col.
Returns name/value pairs which are
additional options as accepted by <I>-editopts</I>.
To indicate that a cell is non-editable, return <B>{-readonly True}</B>.
<P><DT><A NAME="M444"><I>-embed bool</I></A><DD>
When True the edit window is managed internally via an embedded
windowbox style. When false <B><A HREF="../TkCmd/place.htm">place</A></B> is used to manage the window.
The default is <I>False</I>.
An embedded window has
advantages but will result in a re-layout at the begin and end of editing.
Note: place is always used for the tree column.
<P><DT><A NAME="M445"><I>-endcmd cmd</I></A><DD>
Command to call at end of edit, after the new value is set.
Appends the same 5 args as <B>-validatecmd</B>, ie:
<I>widget data olddata ind col</I>.
<P><DT><A NAME="M446"><I>-leafs bool</I></A><DD>
Limit editing to leafs only.  Default is <I>false</I>.
<P><DT><A NAME="M447"><I>-nottnull bool</I></A><DD>
Do not edit empty fields that have not had data assigned to them.
Default is <I>false</I>.
<P><DT><A NAME="M448"><I>-opts values</I></A><DD>
Options to pass directly to the widget..
<P><DT><A NAME="M449"><I>-readonly bool</I></A><DD>
Cell is readonly.  Do not edit.
<P><DT><A NAME="M450"><I>-sel bool</I></A><DD>
Value is initially selected in edit window.
Default is <I>true</I>.
<P><DT><A NAME="M451"><I>-startcmd cmd</I></A><DD>
Command to call at start of edit.
Called with 3 args: widget ind col.
<P><DT><A NAME="M452"><I>-titles bool</I></A><DD>
Enable editing of the title label.  Default is <I>false</I>.
<P><DT><A NAME="M453"><I>-widget wid</I></A><DD>
The widget to use. Builtin support types are: <I>spinbox, text, entry</I>.
The default is <I>entry</I>.
<P><DT><A NAME="M454"><I>-withtag tag</I></A><DD>
Edit only if has tag.
<P><DT><A NAME="M455"><I>-withouttag tag</I></A><DD>
Edit only if does not have tag.
<P><DT><A NAME="M456"><I>-wrap value</I></A><DD>
Setting for wrap mode when edit window is a text widget.  Default is <I>none</I>.
<P></DL>
For general editing control, bind to the &lt;&lt;TreeViewEditStart/End&gt;&gt; virtual
events.
<P><DT><A NAME="M457"><B>-fillcmd </B><I>scriptcmd</I></A><DD>
Support for demand loading of data on display.
Command called (after appending entry id) to set the value
of a data column cell or the entry label in the case of the tree column.
This call occurs only the first time a cells entry is displayed,
and is called only for cells that do not have
a value/label already set.
If an error is raised by the called command, the value will not be set.
<P><DT><A NAME="M458"><B>-hide </B><I>boolean</I></A><DD>
If <I>boolean</I> is true, the column is not displayed.
The default is <B>no</B>.
<P><DT><A NAME="M459"><B>-justify </B><I>justify</I></A><DD>
Specifies how the column data fields text should be justified within
the column.  This matters only when the column is wider than the 
data field to be display.
<I>Justify</I> must be <B>left</B>, <B>right</B>, or <B>center</B>.  
The default is <B>center</B>.
<P><DT><A NAME="M460"><B>-max </B><I>size</I></A><DD>
Maximum size for column.
<P><DT><A NAME="M461"><B>-min </B><I>size</I></A><DD>
Minimum size for column.
<P><DT><A NAME="M462"><B>-pad </B><I>pad</I></A><DD>
Specifies how much padding for the left and right sides of the column.
<I>Pad</I> is a list of one or two screen distances.  If <I>pad</I>
has two elements, the left side of the column is padded by the first
distance and the right side by the second.  If <I>pad</I> has just one
distance, both the left and right sides are padded evenly.  The
default is <B>2</B>.
<P><DT><A NAME="M463"><B>-relief </B><I>relief</I></A><DD>
Specifies the 3-D effect of the column.  <I>Relief</I>
specifies how the column should appear relative to the widget; 
for example, <B>raised</B> means the column should
appear to protrude.  The default is <B>flat</B>.
<P><DT><A NAME="M464"><B>-ruledashes </B><I>value</I></A><DD>
Set resize rule is dashed.
<P><DT><A NAME="M465"><B>-scrolltile </B><I>bool</I></A><DD>
Tile image scrolls.
<P><DT><A NAME="M466"><B>-sortcommand </B><I>script</I></A><DD>
Command to actually compare entries during sort.
<P><DT><A NAME="M467"><B>-sortmode </B><I>mode</I></A><DD>
Used by scripts to set -mode for sort command (eg. blt::tv::SortColumn).
<P><DT><A NAME="M468"><B>-state </B><I>state</I></A><DD>
Sets the state of the column. If <I>state</I> is <B>disable</B> then
the column title can not be activated nor invoked.
The default is <B>normal</B>.
<P><DT><A NAME="M469"><B>-style </B><I>stylename</I></A><DD>
Set the style to use for column.
<P><DT><A NAME="M470"><B>-tile </B><I>image</I></A><DD>
Image to tile column with.
<P><DT><A NAME="M471"><B>-title </B><I>string</I></A><DD>
Sets the title for the column.
The default is <B>&quot;&quot;</B>.
<P><DT><A NAME="M472"><B>-titlearrow </B><I>value</I></A><DD>
Forces an arrow to be drawn in the title.
The <I>value</I> is one of: <B>left right up down none</B> 
and defaults to <B>none</B>.
This is used when implementing custom sorts as the indicator.
<P><DT><A NAME="M473"><B>-titlebackground </B><I>color</I></A><DD>
Background for title.
<P><DT><A NAME="M474"><B>-titleborderwidth </B><I>size</I></A><DD>
Border size.
<P><DT><A NAME="M475"><B>-titlefont </B><I>font</I></A><DD>
Font for column title.
<P><DT><A NAME="M476"><B>-titlejustify </B><I>just</I></A><DD>
Side to place title.
<P><DT><A NAME="M477"><B>-titleforeground </B><I>color</I></A><DD>
Sets the foreground color of the column title. 
The default is <B>black</B>.
<P><DT><A NAME="M478"><B>-titlerelief </B><I>relief</I></A><DD>
Relief for title.
<P><DT><A NAME="M479"><B>-titleshadow </B><I>color</I></A><DD>
Sets the color of the drop shadow of the column title.  
The default is <B>&quot;&quot;</B>.
<P><DT><A NAME="M480"><B>-titlestyle </B><I>style</I></A><DD>
A style to use for titles.
<P><DT><A NAME="M481"><B>-width </B><I>num</I></A><DD>
The user requested width for the column.
<P><DT><A NAME="M482"><B>-underline </B><I>num</I></A><DD>
Character to underline in column title text.  Default is -1.
<P><DT><A NAME="M483"><B>-validatecmd </B><I>command</I></A><DD>
This option provides a command for validating or post processing edits
from the builtin column edit feature
(enabled with <I>col conf -edit 1</I>).
When edit is completing, the
this command string is called after appending 5 arguments:
<I>window newvalue oldvalue node column</I>.
The called command should return <I>newvalue</I>, possibly with modifications.
To revert to the original value, just return <I>$oldvalue</I>
To continue editing, use <B>return -code return</B>
<P></DL>
<P>
<DL class="column options">
<DT><A NAME="M484"><B>-weight </B><I>float</I></A><DD>
Weighting to apply extra space.
<P><DT><A NAME="M485"><B>-width </B><I>pixels</I></A><DD>
Sets the requested width of the column.  This overrides
the computed with of the column.  If <I>pixels</I> is 0,
the width is computed as from the contents of the column. The
default is <B>0</B>.
<P></DL>
<H3><A NAME="M486">EMBEDDED WINDOWS</A></H3>
Embedded windows is supported for data columns via the special
style type <B>windowbox</B>.
A windowbox style can be applied to either columns or cells. 
Setting a windowbox type style for an entry is silently ignored.
When the cell containing a window style is displayed, the subwindow is
taken over and managed as a slave (see <I>style slaves</I>).
If a given windowbox style does not define <I>-windowcmd</I>, then the cell data
is assumed to contain the widget name to use.
If that data does not describe a valid window it is silently ignored and
displays nothing.
If multiple cells try to display the same widget at the same time,
only the first one will appear.
The normal rules Tk slave window rules about being a child of the parent apply.
<P>
<H3><A NAME="M487">OLD TEXT EDITING OPTIONS</A></H3>
<B>SECTION OBSOLETE</B>.
<P>
This section is obsolete and has been replaced with builtin editing using
a Tk entry widget.  See <B>TREEVIEW EDITING</B> above.
<P>
Text edit window configuration options may also be set by the Tk
<B><A HREF="../TkCmd/option.htm">option</A></B> command. The resource class is <B>TreeViewEditor</B>.
The resource name is always <B>edit</B>.
<PRE>option add *TreeViewEditor.Foreground white
option add *edit.Background blue</PRE>
The following are the configuration options available for the
text editing window.
<P>
<DL class="old text editing options">
<DT><A NAME="M488"><B>-background </B><I>color</I></A><DD>
Sets the background of the text edit window.  The default is <B>white</B>.
<P><DT><A NAME="M489"><B>-borderwidth </B><I>pixels</I></A><DD>
Sets the width of the 3-D border around the edit window.  
The <B>-relief</B> option determines if a border is to be drawn.  The
default is <B>1</B>.
<P><DT><A NAME="M490"><B>-exportselection </B><I>boolean</I></A><DD>
Indicates if the text selection is exported.  If the edit window is 
exporting its selection then it will observe the standard X11 protocols 
for handling the selection.  Selections are available as type <B><A HREF="../TclCmd/string.htm">STRING</A></B>.
The default is <B>no</B>.
<P><DT><A NAME="M491"><B>-relief </B><I>relief</I></A><DD>
Specifies the 3-D effect of the edit window.  <I>Relief</I>
indicates how the background should appear relative to the edit
window; for example, <B>raised</B> means the background should
appear to protrude.  The default is <B>solid</B>.
<P><DT><A NAME="M492"><B>-selectbackground </B><I>color</I></A><DD>
Sets the background of the selected text in the edit window.  
The default is <B>white</B>.
<P><DT><A NAME="M493"><B>-selectborderwidth </B><I>pixels</I></A><DD>
Sets the width of the 3-D border around the selected text in the 
edit window.  The <B>-selectrelief</B> option determines if a border 
is to be drawn.  The default is <B>1</B>.
<P><DT><A NAME="M494"><B>-selectforeground </B><I>color</I></A><DD>
Sets the foreground of the selected text in the edit window.  
The default is <B>white</B>.
<P><DT><A NAME="M495"><B>-selectrelief </B><I>relief</I></A><DD>
Specifies the 3-D effect of the selected text in the edit window.  
<I>Relief</I> indicates how the text should appear relative to the edit
window; for example, <B>raised</B> means the text should
appear to protrude.  The default is <B>flat</B>.
<P></DL>
<H3><A NAME="M496">DEFAULT BINDINGS</A></H3>
Tk automatically creates class bindings for treeviews that give them
Motif-like behavior.  Much of the behavior of a <B>treeview</B> widget is determined
by its <B>-selectmode</B> option, which selects one of two ways
of dealing with the selection.
<P>
If the selection mode is <B>single</B>, only one node can be 
selected at a time.
Clicking button 1 on an node selects
it and deselects any other selected item.
<P>
If the selection mode is <B>multiple</B>,
any number of entries may be selected at once, including discontiguous
ranges.  Clicking Control-Button-1 on a node entry
toggles its selection state without affecting any other entries.
Pressing Shift-Button-1 on a node entry selects
it, extends the selection.
<P>
<DL class="default bindings">
<DT>[0]<DD>
The virtual event &lt;&lt;TreeViewFocusEvent&gt;&gt; is generated for each
keyboard and mouse initiated change in focus.  It is up to
the user to determine if the focus actually changed.
<P><DT>[1]<DD>
In <B>extended</B> mode, the selected range can be adjusted by pressing
button 1 with the Shift key down:  this modifies the selection to
consist of the entries between the anchor and the entry under
the mouse, inclusive.
The un-anchored end of this new selection can also be dragged with
the button down.
<P><DT>[2]<DD>
In <B>extended</B> mode, pressing button 1 with the Control key down
starts a toggle operation: the anchor is set to the entry under
the mouse, and its selection state is reversed.  The selection state
of other entries isn't changed.
If the mouse is dragged with button 1 down, then the selection state
of all entries between the anchor and the entry under the mouse
is set to match that of the anchor entry;  the selection state of
all other entries remains what it was before the toggle operation
began.
<P><DT>[3]<DD>
If the mouse leaves the treeview window with button 1 down, the window
scrolls away from the mouse, making information visible that used
to be off-screen on the side of the mouse.
The scrolling continues until the mouse re-enters the window, the
button is released, or the end of the hierarchy is reached.
<P><DT>[4]<DD>
Mouse button 2 may be used for scanning.
If it is pressed and dragged over the <B>treeview</B> widget, the contents of
the hierarchy drag at high speed in the direction the mouse moves.
<P><DT>[5]<DD>
If the Up or Down key is pressed, the location cursor (active
entry) moves up or down one entry, as does Control-p and Control-n.
If the selection mode is <B>browse</B> or <B>extended</B> then the
new active entry is also selected and all other entries are
deselected.
In <B>extended</B> mode the new active entry becomes the
selection anchor.
<P><DT>[6]<DD>
In <B>extended</B> mode, Shift-Up and Shift-Down move the location
cursor (active entry) up or down one entry and also extend
the selection to that entry in a fashion similar to dragging
with mouse button 1.
<P><DT>[7]<DD>
The Left and Right keys scroll the <B>treeview</B> widget view left and right
by the width of the character <B>0</B>.
Control-Left and Control-Right scroll the <B>treeview</B> widget view left and
right by the width of the window.
<P><DT>[8]<DD>
The Prior and Next keys scroll the <B>treeview</B> widget view up and down
by one page (the height of the window), as does Control-u and Control-d.
<P><DT>[9]<DD>
The Home and End keys scroll the <B>treeview</B> widget horizontally to
the left and right edges, respectively.
<P><DT>[10]<DD>
Control-Home sets the location cursor to the first entry, 
selects that entry, and deselects everything else
in the widget.
<P><DT>[11]<DD>
Control-End sets the location cursor to the last entry, 
selects that entry, and deselects everything else
in the widget.
<P><DT>[12]<DD>
In <B>extended</B> mode, Control-Shift-Home extends the selection
to the first entry and Control-Shift-End extends
the selection to the last entry.
<P><DT>[13]<DD>
In <B>multiple</B> mode, Control-Shift-Home moves the location cursor
to the first entry and Control-Shift-End moves
the location cursor to the last entry.
<P><DT>[14]<DD>
The space and Select keys make a selection at the location cursor
(active entry) just as if mouse button 1 had been pressed over
this entry.
<P><DT>[15]<DD>
In <B>extended</B> mode, Control-Shift-space and Shift-Select
extend the selection to the active entry just as if button 1
had been pressed with the Shift key down.
<P><DT>[16]<DD>
In <B>extended</B> mode, the Escape key cancels the most recent
selection and restores all the entries in the selected range
to their previous selection state.
<P><DT>[17]<DD>
Control-slash selects everything in the widget, except in
<B>single</B> and <B>browse</B> modes, in which case it selects
the active entry and deselects everything else.
<P><DT>[18]<DD>
Control-backslash deselects everything in the widget, except in
<B>browse</B> mode where it has no effect.
<P><DT>[19]<DD>
The F16 key (labelled Copy on many Sun workstations) or Meta-w
copies the selection in the widget to the clipboard, if there is
a selection.
<P></DL>
<P>
The behavior of <B>treeview</B> widgets can be changed by defining new bindings 
for individual widgets or by redefining the class bindings.
<H4><A NAME="M497">WIDGET BINDINGS</A></H4>
In addition to the above behavior, the following additional behavior
is defined by the default widget class (TreeView) bindings.
<P>
<DL class="widget bindings">
<DT><A NAME="M498"><B>&lt;ButtonPress-2&gt;</B></A><DD>
Starts scanning. 
<P><DT><A NAME="M499"><B>&lt;B2-Motion&gt;</B></A><DD>
Adjusts the scan.
<P><DT><A NAME="M500"><B>&lt;ButtonRelease-2&gt;</B></A><DD>
Stops scanning.
<P><DT><A NAME="M501"><B>&lt;B1-Leave&gt;</B></A><DD>
Starts auto-scrolling.
<P><DT><A NAME="M502"><B>&lt;B1-Enter&gt;</B></A><DD>
Starts auto-scrolling 
<P><DT><A NAME="M503"><B>&lt;KeyPress-Up&gt;</B></A><DD>
Moves the focus to the previous entry.
<P><DT><A NAME="M504"><B>&lt;KeyPress-Down&gt;</B></A><DD>
Moves the focus to the next entry.
<P><DT><A NAME="M505"><B>&lt;Shift-KeyPress-Up&gt;</B></A><DD>
Moves the focus to the previous sibling.
<P><DT><A NAME="M506"><B>&lt;Shift-KeyPress-Down&gt;</B></A><DD>
Moves the focus to the next sibling.
<P><DT><A NAME="M507"><B>&lt;KeyPress-Prior&gt;</B></A><DD>
Moves the focus to first entry.  Closed or hidden entries
are ignored.
<P><DT><A NAME="M508"><B>&lt;KeyPress-Next&gt;</B></A><DD>
Move the focus to the last entry. Closed or hidden entries
are ignored.
<P><DT><A NAME="M509"><B>&lt;KeyPress-Left&gt;</B></A><DD>
Closes the entry.  It is not an error if the entry has no children.
<P><DT><A NAME="M510"><B>&lt;KeyPress-Right&gt;</B></A><DD>
Opens the entry, displaying its children.  It is not an
error if the entry has no children.
<P><DT><A NAME="M511"><B>&lt;KeyPress-space&gt;</B></A><DD>
In &quot;single&quot; select mode this selects the entry.  In &quot;multiple&quot; mode,
it toggles the entry (if it was previous selected, it is not
deselected).
<P><DT><A NAME="M512"><B>&lt;KeyRelease-space&gt;</B></A><DD>
Turns off select mode.
<P><DT><A NAME="M513"><B>&lt;KeyPress-Return&gt;</B></A><DD>
Sets the focus to the current entry.
<P><DT><A NAME="M514"><B>&lt;KeyRelease-Return&gt;</B></A><DD>
Turns off select mode.
<P><DT><A NAME="M515"><B>&lt;KeyPress&gt;</B></A><DD>
Moves to the next entry whose label starts with the letter typed.
<P><DT><A NAME="M516"><B>&lt;KeyPress-Home&gt;</B></A><DD>
Moves the focus to first entry.  Closed or hidden entries
are ignored.
<P><DT><A NAME="M517"><B>&lt;KeyPress-End&gt;</B></A><DD>
Move the focus to the last entry. Closed or hidden entries
are ignored.
<P><DT><A NAME="M518"><B>&lt;Control-a&gt;</B></A><DD>
Move to parent of current entry.
<P><DT><A NAME="M519"><B>&lt;Control-o&gt;</B></A><DD>
Open current entry.
<P><DT><A NAME="M520"><B>&lt;Control-Shift-O&gt;</B></A><DD>
Open current entry recursively.
<P><DT><A NAME="M521"><B>&lt;Double-ButtonRelease-1&gt;</B></A><DD>
Edit cell.
<P><DT><A NAME="M522"><B>&lt;Alt-Double-ButtonRelease-1&gt;</B></A><DD>
Edit cell.
<P><DT><A NAME="M523"><B>&lt;Control-KeyPress-minus&gt;</B></A><DD>
Close parent of current entry.
<P><DT><A NAME="M524"><B>&lt;KeyPress-F1&gt;</B></A><DD>
Opens all tree nodes.
<P><DT><A NAME="M525"><B>&lt;KeyPress-F2&gt;</B></A><DD>
Closes all tree nodes (except root).
<P><DT><A NAME="M526"><B>&lt;KeyPress-F3&gt;</B></A><DD>
Toggle flat mode.
<P><DT><A NAME="M527"><B>&lt;KeyPress-F4&gt;</B></A><DD>
Reset all column widths back to 0 allowing autosizing.
<P><DT><A NAME="M528"><B>&lt;Control-Shift-O&gt;</B></A><DD>
Open focus tree node recursively.
<P><DT><A NAME="M529"><B>&lt;Control-Shift-C&gt;</B></A><DD>
Close focus tree node recursively.
<P></DL>
<H4><A NAME="M530">BUTTON BINDINGS</A></H4>
Buttons have bindings.  There are associated with the &quot;all&quot; bindtag
(see the entry's -bindtag option).  You can use the <B><A HREF="../TkCmd/bind.htm">bind</A></B>
operation to change them.
<P>
<DL class="button bindings">
<DT><A NAME="M531"><B>&lt;Enter&gt;</B></A><DD>
Highlights the button of the current entry.
<P><DT><A NAME="M532"><B>&lt;Leave&gt;</B></A><DD>
Returns the button back to its normal state.
<P><DT><A NAME="M533"><B>&lt;ButtonRelease-1&gt;</B></A><DD>
Adjust the view so that the current entry is visible.
<P></DL>
<H4><A NAME="M534">ENTRY BINDINGS</A></H4>
Entries have default bindings.  There are associated with the &quot;all&quot;
bindtag (see the entry's -bindtag option).  You can use the <B><A HREF="../TkCmd/bind.htm">bind</A></B>
operation to modify them.
<P>
<DL class="entry bindings">
<DT><A NAME="M535"><B>&lt;Enter&gt;</B></A><DD>
Highlights the current entry.
<P><DT><A NAME="M536"><B>&lt;Leave&gt;</B></A><DD>
Returns the entry back to its normal state.
<P><DT><A NAME="M537"><B>&lt;ButtonPress-1&gt;</B></A><DD>
Sets the selection anchor the current entry.
<P><DT><A NAME="M538"><B>&lt;Double-ButtonPress-1&gt;</B></A><DD>
Toggles the selection of the current entry.
<P><DT><A NAME="M539"><B>&lt;B1-Motion&gt;</B></A><DD>
For &quot;multiple&quot; mode only.  Saves the current location of the
pointer for auto-scrolling.  Resets the selection mark.  
<P><DT><A NAME="M540"><B>&lt;ButtonRelease-1&gt;</B></A><DD>
For &quot;multiple&quot; mode only.  Sets the selection anchor to the 
current entry.
<P><DT><A NAME="M541"><B>&lt;Shift-ButtonPress-1&gt;</B></A><DD>
For &quot;multiple&quot; mode only. Extends the selection.
<P><DT><A NAME="M542"><B>&lt;Shift-Double-ButtonPress-1&gt;</B></A><DD>
Place holder. Does nothing.
<P><DT><A NAME="M543"><B>&lt;Shift-B1-Motion&gt;</B></A><DD>
Place holder. Does nothing.
<P><DT><A NAME="M544"><B>&lt;Shift-ButtonRelease-1&gt;</B></A><DD>
Stop auto-scrolling.
<P><DT><A NAME="M545"><B>&lt;Control-ButtonPress-1&gt;</B></A><DD>
For &quot;multiple&quot; mode only.  Toggles and extends the selection.
<P><DT><A NAME="M546"><B>&lt;Control-Double-ButtonPress-1&gt;</B></A><DD>
Place holder. Does nothing.
<P><DT><A NAME="M547"><B>&lt;Control-B1-Motion&gt;</B></A><DD>
Place holder. Does nothing.
<P><DT><A NAME="M548"><B>&lt;Control-ButtonRelease-1&gt;</B></A><DD>
Stops auto-scrolling.
<P><DT><A NAME="M549"><B>&lt;Control-Shift-ButtonPress-1&gt;</B></A><DD>
???
<P><DT><A NAME="M550"><B>&lt;Control-Shift-Double-ButtonPress-1&gt;</B></A><DD>
Place holder. Does nothing.
<P><DT><A NAME="M551"><B>&lt;Control-Shift-B1-Motion&gt;</B></A><DD>
Place holder. Does nothing.
<P></DL>
<H4><A NAME="M552">COLUMN BINDINGS</A></H4>
Columns have bindings too.  They are associated with the column's
&quot;all&quot; bindtag (see the column -bindtag option).  You can use the
<B>column bind</B> operation to change them.
<P>
<DL class="column bindings">
<DT><A NAME="M553"><B>&lt;Enter&gt;</B></A><DD>
Highlights the current column title.
<P><DT><A NAME="M554"><B>&lt;Leave&gt;</B></A><DD>
Returns the column back to its normal state.
<P><DT><A NAME="M555"><B>&lt;ButtonRelease-1&gt;</B></A><DD>
Invokes the command (see the column's -command option) if one
if specified.  
<P></DL>
<H4><A NAME="M556">COLUMN RULE BINDINGS</A></H4>
<DL class="column rule bindings">
<DT><A NAME="M557"><B>&lt;Enter&gt;</B></A><DD>
Highlights the current and activates the ruler.
<P><DT><A NAME="M558"><B>&lt;Leave&gt;</B></A><DD>
Returns the column back to its normal state. Deactivates the
ruler.
<P><DT><A NAME="M559"><B>&lt;ButtonPress-1&gt;</B></A><DD>
Sets the resize anchor for the column.
<P><DT><A NAME="M560"><B>&lt;B1-Motion&gt;</B></A><DD>
Sets the resize mark for the column.
<P><DT><A NAME="M561"><B>&lt;ButtonRelease-1&gt;</B></A><DD>
Adjust the size of the column, based upon the resize anchor and mark
positions.
<P></DL>
<H3><A NAME="M562">QUICKSTART</A></H3>
TreeFill is a utility function to simplify tree data loading
from a human-readable string.  The string
uses line indentation to indicate tree depth.
The indentation is in multiples of 4 spaces, relative to the first line. eg.
<PRE>pack [treeview .t]
 .t column insert end X Y Z
 blt::tv::TreeFill .t {
     A 1 2 3
     B 4 5 6
         x 7 8 9
         y 10 11 12
             a 1 2 &quot;Level a&quot;
             b 1 2 &quot;Level b&quot;
     C 1 2 3
 }
 .t open -trees all
 .t entry conf 0-&gt;B-&gt;y-&gt;a -state disabled</PRE>
Any column names not defined are generated.
To load a table instead of a tree, simply set the -flat option first. eg.
<PRE>pack [treeview .t -flat 1]
 .t column conf Col0 -hide 1
 .t column insert end Name Age Sex
 blt::tv::TreeFill .t {
     &quot;Tom Brown&quot; 9 M
     &quot;Mike Small&quot; 8 M
     &quot;Tina Baker&quot; 7 F
 }</PRE>
<H3><A NAME="M563">EXAMPLE</A></H3>
The <B>treeview</B> command creates a new widget.  
<PRE>treeview .h -bg white</PRE>
A new Tcl command <B>.h</B> is also created.  This command can be used
to query and modify the <B>treeview</B> widget.  For example, to change the 
background
color of the table to &quot;green&quot;, you use the new command and the widget's
<B>configure</B> operation.
<PRE># Change the background color.
	.h configure -background &quot;green&quot;</PRE>
By default, the <B>treeview</B> widget will automatically create a new tree object
to contain the data.  The name of the new tree is the pathname of the
widget.  Above, the new tree object name is &quot;.h&quot;.  But you can use the
<B>-tree</B> option to specify the name of another tree.
<PRE># View the tree &quot;myTree&quot;.
	.h configure -tree &quot;myTree&quot;</PRE>
When a new tree is created, it contains only a root node.  The node
is automatically opened.  The id of the root node is always
<B>0</B> (you can use also use the special id <B>root</B>). The
<B>insert</B> operation lets you insert one or more new entries into
the tree.  The last argument is the node's <I>pathname</I>.  
<PRE># Create a new entry named &quot;myEntry&quot;
set id [	.h insert end &quot;myEntry&quot;]</PRE>
This appends a new node named &quot;myEntry&quot;.  It will positioned as the
last child of the root of the tree (using the position &quot;end&quot;).  You
can supply another position to order the node within its siblings.
<PRE># Prepend &quot;fred&quot;.
set id [	.h insert 0 &quot;fred&quot;]</PRE>
Entry names do not need to be unique.  By default, the node's label
is its name.  To supply a different text label, add the <B>-label</B>
option.
<PRE># Create a new node named &quot;fred&quot;
set id [	.h insert end &quot;fred&quot; -label &quot;Fred Flintstone&quot;]</PRE>
The <B>insert</B> operation returns the id of the new node.  You can
also use the <B>index</B> operation to get this information.
<PRE># Get the id of &quot;fred&quot;
	.h index &quot;fred&quot;</PRE>
To insert a node somewhere other than root, use the <B>-at</B> switch.
It takes the id of the node where the new child will be added.
<PRE># Create a new node &quot;barney&quot; in &quot;fred&quot;.
	.h insert -at $id end &quot;barney&quot;</PRE>
A pathname describes the path to an entry in the hierarchy.  It's a
list of entry names that compose the path in the tree.  Therefore, you
can also add &quot;barney&quot; to &quot;fred&quot; as follows.
<PRE># Create a new sub-entry of &quot;fred&quot;
	.h insert end &quot;fred barney&quot;</PRE>
Every name in the list is ancestor of the next.  All ancestors must
already exist.  That means that an entry &quot;fred&quot; is an ancestor of
&quot;barney&quot; and must already exist.  But you can use the
<B>-autocreate</B> configuration option to force the creation of
ancestor nodes.
<PRE># Force the creation of ancestors.
	.h configure -autocreate yes 
	.h insert end &quot;fred barney wilma betty&quot;</PRE>
Sometimes the pathname is already separated by a character sequence
rather than formed as a list.  A file name is a good example of this.
You can use the <B>-separator</B> option to specify a separator string
to split the path into its components.  Each pathname inserted is
automatically split using the separator string as a separator.
Multiple separators are treated as one.
<PRE>.h configure -separator /
	.h insert end &quot;/usr/local/tcl/bin&quot;</PRE>
If the path is prefixed by extraneous characters, you can
automatically trim it off using the <B>-trim</B> option.  It removed
the string from the path before it is parsed.
<PRE>.h configure -trim C:/windows -separator /
	.h insert end &quot;C:/window/system&quot;</PRE>
You can insert more than one entry at a time with the <B>insert</B>
operation.  This can be much faster than looping over a list of names.
<PRE># The slow way
foreach f [glob $dir/*] {
    	.h insert end $f
}
# The fast way
eval .h insert end [glob $dir/*]</PRE>
In this case, the <B>insert</B> operation will return a list of ids
of the new entries.
<P>
You can delete entries with the <B>delete</B> operation.  It takes one or
more tags of ids as its argument. It deletes the entry and all its
children.
<PRE>.h delete $id</PRE>
Entries have several configuration options.  They control the appearance
of the entry's icon and label.  We have already seen the <B>-label</B>
option that sets the entry's text label.   The <B>entry configure</B>
operation lets you set or modify an entry's configuration options.
<PRE>.h entry configure $id -color red -font fixed</PRE>
You can hide an entry and its children using the <B>-hide</B> option.
<PRE>.h entry configure $id -hide yes</PRE>
More that one entry can be configured at once.  All entries specified
are configured with the same options.
<PRE>.h entry configure $i1 $i2 $i3 $i4 -color brown</PRE>
An icon is displayed for each entry.  It's a Tk image drawn to the
left of the label.  You can set the icon with the entry's
<B>-icons</B> option.  It takes a list of two image names: one to
represent the open entry, another when it is closed.
<PRE>set im1 [image create photo -file openfolder.gif]
set im2 [image create photo -file closefolder.gif]
	.h entry configure $id -icons &quot;$im1 $im2&quot;</PRE>
If <B>-icons</B> is set to the empty string, no icons are display.
<P>
If an entry has children, a button is displayed to the left of the
icon. Clicking the mouse on this button opens or closes the
sub-hierarchy.  The button is normally a <B>+</B> or <B>-</B>
symbol, but can be configured in a variety of ways using the <B>button
configure</B> operation.  For example, the <B>+</B> and <B>-</B>
symbols can be replaced with Tk images.
<PRE>set im1 [image create photo -file closefolder.gif]
set im2 [image create photo -file downarrow.gif]
	.h button configure $id -images &quot;$im1 $im2&quot; &#92;
    -openrelief raised -closerelief raised</PRE>
Entries can contain an arbitrary number of <I>data fields</I>.  Data
fields are name-value pairs.  Both the value and name are strings.
The entry's <B>-data</B> option lets you set data fields.
<PRE>.h entry configure $id -data {mode 0666 group users}</PRE>
The <B>-data</B> takes a list of name-value pairs.  
<P>
You can display these data fields as <I>columns</I> in the
<B>treeview</B> widget.  You can create and configure columns with
the <B>column</B> operation.  For example, to add a new column to the
widget, use the <B>column insert</B> operation.  The last argument is
the name of the data field that you want to display.
<PRE>.h column insert end &quot;mode&quot;</PRE>
The column title is displayed at the top of the column.  By default,
it's is the field name.  You can override this using the column's
<B>-title</B> option.
<PRE>.h column insert end &quot;mode&quot; -title &quot;File Permissions&quot;</PRE>
Columns have several configuration options.  The <B>column
configure</B> operation lets you query or modify column options.
<PRE>.h column configure &quot;mode&quot; -justify left</PRE>
The <B>-justify</B> option says how the data is justified within in
the column.  The <B>-hide</B> option indicates whether the column is
displayed.
<PRE>.h column configure &quot;mode&quot; -hide yes</PRE>
Entries can be selected by clicking on the mouse.  Selected entries
are drawn using the colors specified by the <B>-selectforeground</B> 
and <B>-selectbackground</B> configuration options.
The selection itself is managed by the <B><A HREF="../TkCmd/selection.htm">selection</A></B> operation.
<PRE># Clear all selections
	.h selection clear 0 end
# Select the root node
	.h selection set 0</PRE>
The <B>curselection</B> operation returns a list of ids of
all the selected entries.
<PRE>set ids [	.h curselection]</PRE>
You can use the <B>get</B> operation to convert the ids to 
their pathnames.
<PRE>set names [eval .h get -full $ids]</PRE>
If a treeview is exporting its selection (using the
<B>-exportselection</B> option), then it will observe the standard X11
protocols for handling the selection.  Treeview selections are
available as type <B><A HREF="../TclCmd/string.htm">STRING</A></B>; the value of the selection will be the
pathnames of the selected entries, separated by newlines.
<P>
The <B>treeview</B> supports two modes of selection: <B>single</B>
and <B>multiple</B>.  In single select mode, only one entry can be
selected at a time, while multiple select mode allows several entries
to be selected.  The mode is set by the widget's <B>-selectmode</B>
option.
<PRE>.h configure -selectmode &quot;multiple&quot;</PRE>
You can be notified when the list of selected entries changes.  The widget's
<B>-selectcommand</B> specifies a Tcl procedure that is called whenever
the selection changes.
<PRE>proc SelectNotify { widget } {
   set ids [	$widget curselection]
}
	.h configure -selectcommand &quot;SelectNotify .h&quot;</PRE>
The widget supports the standard Tk scrolling and scanning operations.
The <B>treeview</B> can be both horizontally and vertically. You can
attach scrollbars to the <B>treeview</B> the same way as the listbox
or canvas widgets.
<PRE>scrollbar .xbar -orient horizontal -command &quot;.h xview&quot;
scrollbar .ybar -orient vertical -command &quot;.h yview&quot;
	.h configure -xscrollcommand &quot;.xbar set&quot; &#92;
    -yscrollcommand &quot;.ybar set&quot;</PRE>
Entries can be programmatically opened or closed using the <B><A HREF="../TclCmd/open.htm">open</A></B>
and <B><A HREF="../TclCmd/close.htm">close</A></B> operations respectively.  
<PRE>.h open $id
	.h close $id</PRE>
When an entry is opened, a Tcl procedure can be automatically invoked.
The <B>-opencommand</B> option specifies this procedure.  This
procedure can lazily insert entries as needed.
<PRE>proc AddEntries { dir } {
   eval .h insert end [glob -nocomplain $dir/*] 
}
	.h configure -opencommand &quot;AddEntries %P&quot;</PRE>
Now when an entry is opened, the procedure <B>AddEntries</B> is
called and adds children to the entry.  Before the command is invoked,
special &quot;%&quot; substitutions (like <B><A HREF="../TkCmd/bind.htm">bind</A></B>) are performed. Above,
<B>%P</B> is translated to the pathname of the entry.
<P>
The same feature exists when an entry is closed.  The
<B>-closecommand</B> option specifies the procedure.
<PRE>proc DeleteEntries { id } {
   .h entry delete $id 0 end
}
	.h configure -closecommand &quot;DeleteEntries %#&quot;</PRE>
When an entry is closed, the procedure <B>DeleteEntries</B> is called
and deletes the entry's children using the <B>entry delete</B> operation
(<B>%#</B> is the id of entry).
<H3><A NAME="M564">OLD TREEVIEW EDITS</A></H3>
<B>NOTE: This section is OBSOLETE.  Native Tk widgets are now used for editing.</B>.
<P>
<DL class="old treeview edits">
<DT><A NAME="M565">When editing the subwidget .edit is available.</A><DD>
<P><DT><A NAME="M566"><I>pathName.</I><B>edit </B><I>operation</I> ?<I>args</I>?</A><DD>
This operation is used to provide text editing for cells (data 
fields in a column) or entry labels.
It has several forms, depending on <I>operation</I>:
<P>
<DL class="old treeview edits">
<DT><A NAME="M567"><I>pathName.</I><B>edit apply</B></A><DD>
Applies the edited buffer, replacing the entry label
or data field. The edit window is hidden.
<P><DT><A NAME="M568"><I>pathName.</I><B>edit cancel</B></A><DD>
Cancels the editing operation, reverting the entry label 
or data value back to the previous value. The edit window is hidden.
<P><DT><A NAME="M569"><I>pathName.</I><B>edit cget</B><I> value</I></A><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 <B>configure</B>
operation described below.
<P><DT><A NAME="M570"><I>pathName.</I><B>edit configure</B> ?<I>option value</I>?</A><DD>
Query or modify the configuration options of the edit window.
If no <I>option</I> is specified, returns a list describing all of
the available options (see <B><A HREF="../TkLib/ConfigWidg.htm">Tk_ConfigureInfo</A></B> for
information on the format of this list).  If <I>option</I> is specified
with no <I>value</I>, then the command returns a list describing the
one named option (this list will be 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 are specified, then the command
modifies the given widget option(s) to have the given value(s);  in
this case the command returns an empty string.
<I>Option</I> and <I>value</I> are described in the section 
below.
<P></DL>
<P><DT><A NAME="M571"><I>pathName.</I><B>edit delete</B><I> first last</I></A><DD>
Deletes the characters in the edit buffer between the two given
character positions.  
<P><DT><A NAME="M572"><I>pathName.</I><B>edit get</B> ?<I>-root</I>? <I>x y</I></A><DD>
<P><DT><A NAME="M573"><I>pathName.</I><B>edit icursor</B><I> index</I></A><DD>
<P><DT><A NAME="M574"><I>pathName.</I><B>edit index</B><I> index</I></A><DD>
Returns the text index of given <I>index</I>.
<P><DT><A NAME="M575"><I>pathName.</I><B>edit insert</B><I> index string</I></A><DD>
Insert the text string <I>string</I> into the edit buffer at the index 
<I>index</I>.  For example, the index 0 will prepend the buffer.
<P><DT><A NAME="M576"><I>pathName.</I><B>edit selection</B><I> args</I></A><DD>
This operation controls the selection of the editing window.  Note
that this differs from the selection of entries.
It has the following forms:
<P>
<DL class="old treeview edits">
<DT><A NAME="M577"><I>pathName.</I><B>edit selection adjust</B><I> index</I></A><DD>
Adjusts either the first or last index of the selection.
<P><DT><A NAME="M578"><I>pathName.</I><B>edit selection clear</B></A><DD>
Clears the selection.
<P><DT><A NAME="M579"><I>pathName.</I><B>edit selection from</B><I> index</I></A><DD>
Sets the anchor of the selection.
<P><DT><A NAME="M580"><I>pathName.</I><B>edit selection present</B></A><DD>
Indicates if a selection is present.
<P><DT><A NAME="M581"><I>pathName.</I><B>edit selection range</B><I> start end</I></A><DD>
Sets both the anchor and mark of the selection.
<P><DT><A NAME="M582"><I>pathName.</I><B>edit selection to</B><I> index</I></A><DD>
Sets the unanchored end (mark) of the selection.
<P></DL>
<P></DL>
<H3><A NAME="M583">NOTES</A></H3>
Text cells in display height can be at most 64K pixels high per row.
<H3><A NAME="M584">KEYWORDS</A></H3>
<A href="../Keywords/T.htm#treeview">treeview</A>, <A href="../Keywords/W.htm#widget">widget</A>
<div class="copy">Copyright &copy; 1995-1997 Roger E. Critchlow Jr.
</div>
</BODY></HTML>