head	1.22;
access;
symbols
	core-8-5-9:1.17.2.1
	core-8-5-8:1.17
	macosx-cocoa-merge:1.20
	macosx-cocoa-premerge:1.20
	macosx-carbon-freeze:1.20
	core-8-5-7:1.17
	core-8-5-6:1.17
	core-8-6-b1:1.20
	core-8-6-a3:1.20
	core-8-5-5:1.17
	core-8-6-a2:1.19
	core-8-5-4:1.17
	core-8-5-3:1.17
	core-8-6-a1:1.18
	core-8-5-branch:1.17.0.2
	core-8-5-2:1.17
	core-8-5-1:1.17
	core-8-5-0:1.16
	core-8-5-b3:1.12
	core-8-5-b2:1.9
	core-8-5-b1:1.5
	core-stablilizer-merge:1.5
	core-stabilizer-branch:1.5.0.2
	core-stabilizer-merge:1.17
	core-8-5-a6:1.4;
locks; strict;
comment	@# @;


1.22
date	2010.03.28.21.43.25;	author jenglish;	state Exp;
branches;
next	1.21;

1.21
date	2009.11.15.21.09.22;	author dkf;	state Exp;
branches;
next	1.20;

1.20
date	2008.09.23.13.36.58;	author dkf;	state Exp;
branches;
next	1.19;

1.19
date	2008.06.30.22.57.03;	author dkf;	state Exp;
branches;
next	1.18;

1.18
date	2008.05.23.20.20.05;	author jenglish;	state Exp;
branches;
next	1.17;

1.17
date	2008.01.29.15.38.00;	author dkf;	state Exp;
branches
	1.17.2.1;
next	1.16;

1.16
date	2007.12.14.16.29.24;	author jenglish;	state Exp;
branches;
next	1.15;

1.15
date	2007.12.13.15.23.44;	author dgp;	state Exp;
branches;
next	1.14;

1.14
date	2007.12.12.15.51.22;	author jenglish;	state Exp;
branches;
next	1.13;

1.13
date	2007.12.10.16.21.01;	author jenglish;	state Exp;
branches;
next	1.12;

1.12
date	2007.11.01.10.59.44;	author dkf;	state Exp;
branches;
next	1.11;

1.11
date	2007.10.30.21.29.59;	author dkf;	state Exp;
branches;
next	1.10;

1.10
date	2007.10.29.16.04.14;	author dkf;	state Exp;
branches;
next	1.9;

1.9
date	2007.10.26.20.13.23;	author dgp;	state Exp;
branches;
next	1.8;

1.8
date	2007.10.24.14.32.59;	author dkf;	state Exp;
branches;
next	1.7;

1.7
date	2007.10.23.15.44.36;	author dkf;	state Exp;
branches;
next	1.6;

1.6
date	2007.10.22.14.33.13;	author dkf;	state Exp;
branches;
next	1.5;

1.5
date	2007.05.03.23.55.30;	author dkf;	state Exp;
branches
	1.5.2.1;
next	1.4;

1.4
date	2006.12.18.19.33.13;	author jenglish;	state Exp;
branches;
next	1.3;

1.3
date	2006.12.13.23.04.33;	author hobbs;	state Exp;
branches;
next	1.2;

1.2
date	2006.11.27.06.53.55;	author jenglish;	state Exp;
branches;
next	1.1;

1.1
date	2006.10.31.01.42.25;	author hobbs;	state Exp;
branches;
next	;

1.5.2.1
date	2007.10.24.12.59.32;	author dgp;	state Exp;
branches;
next	1.5.2.2;

1.5.2.2
date	2007.10.27.04.23.15;	author dgp;	state Exp;
branches;
next	1.5.2.3;

1.5.2.3
date	2007.11.01.16.37.16;	author dgp;	state Exp;
branches;
next	1.5.2.4;

1.5.2.4
date	2007.12.10.18.39.28;	author dgp;	state Exp;
branches;
next	1.5.2.5;

1.5.2.5
date	2007.12.13.06.28.47;	author dgp;	state Exp;
branches;
next	1.5.2.6;

1.5.2.6
date	2008.01.23.16.39.11;	author dgp;	state Exp;
branches;
next	1.5.2.7;

1.5.2.7
date	2008.01.29.17.35.51;	author dgp;	state Exp;
branches;
next	;

1.17.2.1
date	2010.08.26.02.06.09;	author hobbs;	state Exp;
branches;
next	;


desc
@@


1.22
log
@ttk::treeview widget: add 'tag names', 'tag add', and 'tag remove' methods.
@
text
@'\"
'\" Copyright (c) 2004 Joe English
'\"
'\" See the file "license.terms" for information on usage and redistribution
'\" of this file, and for a DISCLAIMER OF ALL WARRANTIES.
'\" 
'\" RCS: @@(#) $Id: ttk_treeview.n,v 1.21 2009/11/15 21:09:22 dkf Exp $
'\" 
.so man.macros
.TH ttk::treeview n 8.5 Tk "Tk Themed Widget"
.BS
.SH NAME
ttk::treeview \- hierarchical multicolumn data display widget
.SH SYNOPSIS
\fBttk::treeview \fIpathname \fR?\fIoptions\fR?
.BE
.SH DESCRIPTION
.PP
The \fBttk::treeview\fR widget displays a hierarchical collection of items.
Each item has a textual label, an optional image, 
and an optional list of data values.
The data values are displayed in successive columns after
the tree label.
.PP
The order in which data values are displayed may be controlled
by setting the \fB\-displaycolumns\fR widget option.  
The tree widget can also display column headings.
Columns may be accessed by number or by symbolic names 
listed in the \fB\-columns\fR widget option;
see \fBCOLUMN IDENTIFIERS\fR.
.PP
Each item is identified by a unique name.
The widget will generate item IDs if they are not supplied by the caller.
There is a distinguished root item, named \fB{}\fR.
The root item itself is not displayed;
its children appear at the top level of the hierarchy.
.PP
Each item also has a list of \fItags\fR,
which can be used to associate event bindings with individual items
and control the appearance of the item.
.\" .PP
.\" @@@@@@HERE: describe selection, focus item
.PP
Treeview widgets support horizontal and vertical scrolling with the
standard \fB\-\fR[\fBxy\fR]\fBscrollcommand\fR options 
and [\fBxy\fR]\fBview\fR widget commands.
.SO ttk_widget
\-class	\-cursor	\-takefocus
\-style	\-xscrollcommand	\-yscrollcommand
.SE
.SH "WIDGET-SPECIFIC OPTIONS"
.OP \-columns columns Columns
A list of column identifiers, 
specifying the number of columns and their names.
.\"X: This is a read-only option; it may only be set when the widget is created.
.OP \-displaycolumns displayColumns DisplayColumns
A list of column identifiers 
(either symbolic names or integer indices)
specifying which data columns are displayed 
and the order in which they appear, 
or the string \fB#all\fP.
If set to \fB#all\fP (the default),
all columns are shown in the order given.
.OP \-height height Height
Specifies the number of rows which should be visible.
Note:
the requested width is determined from the sum of the column widths.
.OP \-padding padding Padding
Specifies the internal padding for the widget.
The padding is a list of up to four length specifications;
see \fBTtk_GetPaddingFromObj()\fR for details.
.OP \-selectmode selectMode SelectMode
Controls how the built-in class bindings manage the selection.
One of \fBextended\fR, \fBbrowse\fR, or \fBnone\fR.
.RS
.PP
If set to \fBextended\fR (the default), multiple items may be selected.
If \fBbrowse\fR, only a single item will be selected at a time.
If \fBnone\fR, the selection will not be changed.
.PP
Note that application code and tag bindings can set the selection 
however they wish, regardless of the value of \fB\-selectmode\fR.
.RE
.OP \-show show Show
A list containing zero or more of the following values, specifying
which elements of the tree to display.
.RS
.IP \fBtree\fR
Display tree labels in column #0.  
.IP \fBheadings\fR
Display the heading row.
.PP
The default is \fBtree headings\fR, i.e., show all elements.
.PP
\fBNOTE:\fR Column #0 always refers to the tree column,
even if \fB\-show tree\fR is not specified.
.RE
.SH "WIDGET COMMAND"
.PP
.TP
\fIpathname \fBbbox \fIitem\fR ?\fIcolumn\fR?
Returns the bounding box (relative to the treeview widget's window)
of the specified \fIitem\fR
in the form \fIx y width height\fR.
If \fIcolumn\fR is specified, returns the bounding box of that cell.
If the \fIitem\fR is not visible
(i.e., if it is a descendant of a closed item or is scrolled offscreen),
returns the empty list.
.TP
\fIpathname \fBcget \fIoption\fR
Returns the current value of the specified \fIoption\fR; see \fIttk::widget(n)\fR.
.TP
\fIpathname \fBchildren \fIitem\fR ?\fInewchildren\fR?
If \fInewchildren\fR is not specified,
returns the list of children belonging to \fIitem\fR.
.RS
.PP
If \fInewchildren\fR is specified, replaces \fIitem\fR's child list
with \fInewchildren\fR.  
Items in the old child list not present in the new child list
are detached from the tree.
None of the items in \fInewchildren\fR may be an ancestor
of \fIitem\fR.
.RE
.TP
\fIpathname \fBcolumn \fIcolumn\fR ?\fI\-option \fR?\fIvalue \-option value...\fR?
Query or modify the options for the specified \fIcolumn\fR.
If no \fI\-option\fR is specified,
returns a dictionary of option/value pairs.
If a single \fI\-option\fR is specified, 
returns the value of that option.
Otherwise, the options are updated with the specified values.
The following options may be set on each column:
.RS
.TP
\fB\-id \fIname\fR
The column name.  This is a read-only option.
For example, [\fI$pathname \fBcolumn #\fIn \fB\-id\fR]
returns the data column associated with display column #\fIn\fR. 
.TP
\fB\-anchor\fR
Specifies how the text in this column should be aligned
with respect to the cell. One of
\fBn\fR, \fBne\fR, \fBe\fR, \fBse\fR,
\fBs\fR, \fBsw\fR, \fBw\fR, \fBnw\fR, or \fBcenter\fR.
.TP
\fB\-minwidth\fR
The minimum width of the column in pixels.
The treeview widget will not make the column any smaller than
\fB\-minwidth\fR when the widget is resized or the user drags a 
column separator.
.TP
\fB\-stretch\fR
Specifies whether or not the column's width should be adjusted
when the widget is resized.
.TP
\fB\-width \fIw\fR
The width of the column in pixels.  Default is something reasonable,
probably 200 or so.
.PP
Use \fIpathname column #0\fR to configure the tree column.
.RE
.TP
\fIpathname \fBconfigure\fR ?\fIoption\fR? ?\fIvalue option value ...\fR?
Modify or query widget options; see \fIttk::widget(n)\fR.
.TP
\fIpathname \fBdelete \fIitemList\fR
Deletes each of the items in \fIitemList\fR and all of their descendants.
The root item may not be deleted.
See also: \fBdetach\fR.
.TP
\fIpathname \fBdetach \fIitemList\fR
Unlinks all of the specified items in \fIitemList\fR from the tree.
The items and all of their descendants are still present
and may be reinserted at another point in the tree
with the \fBmove\fR operation,
but will not be displayed until that is done.
The root item may not be detached.
See also: \fBdelete\fR.
.TP
\fIpathname \fBexists \fIitem\fR
Returns 1 if the specified \fIitem\fR is present in the tree,
0 otherwise.
.TP
\fIpathname \fBfocus \fR?\fIitem\fR?
If \fIitem\fR is specified, sets the focus item to \fIitem\fR.
Otherwise, returns the current focus item, or \fB{}\fR if there is none.
.\" Need: way to clear the focus item.  {} works for this...
.TP 
\fIpathname \fBheading \fIcolumn\fR ?\fI\-option \fR?\fIvalue \-option value...\fR?
Query or modify the heading options for the specified \fIcolumn\fR.
Valid options are:
.RS
.TP
\fB\-text \fItext\fR
The text to display in the column heading.
.TP
\fB\-image \fIimageName\fR
Specifies an image to display to the right of the column heading.
.TP
\fB\-anchor \fIanchor\fR
Specifies how the heading text should be aligned.
One of the standard Tk anchor values.
.TP
\fB\-command \fIscript\fR
A script to evaluate when the heading label is pressed.
.PP
Use \fIpathname heading #0\fR to configure the tree column heading.
.RE
.TP
\fIpathname \fBidentify \fIcomponent x y\fR
Returns a description of the specified \fIcomponent\fR
under the point given by \fIx\fR and \fIy\fR,
or the empty string if no such \fIcomponent\fR is present at that position.
The following subcommands are supported:
.RS
.TP
\fIpathname \fBidentify region \fIx y\fR
.RS
Returns one of:
.IP heading
Tree heading area;
use [\fBpathname identify column \fIx y\fR]
to determine the heading number.
.IP separator
Space between two column headings;
[\fBpathname identify column \fIx y\fR]
will return the display column identifier
of the heading to left of the separator.
.IP tree
The tree area.
.IP cell
A data cell.
.RE
\fIpathname \fBidentify item \fIx y\fR
Returns the item ID of the item at position \fIy\fR.
.TP
\fIpathname \fBidentify column \fIx y\fR
Returns the data column identifier of the cell at position \fIx\fR.
The tree column has ID \fB#0\fR.
.TP
\fIpathname \fBidentify element \fIx y\fR
The element at position \fIx,y\fR.
.TP
\fIpathname \fBidentify row \fIx y\fR
Obsolescent synonym for \fIpathname \fBidentify item\fR.
.PP
See \fBCOLUMN IDENTIFIERS\fR for a discussion of display columns
and data columns.
.RE
.TP
\fIpathname \fBindex \fIitem\fR
Returns the integer index of \fIitem\fR within its parent's list of children.
.TP
\fIpathname \fBinsert \fIparent index\fR ?\fB\-id \fIid\fR? \fIoptions...\fR
Creates a new item.  
\fIparent\fR is the item ID of the parent item,
or the empty string \fB{}\fR
to create a new top-level item.
\fIindex\fR is an integer, or the value \fBend\fR, specifying where in the
list of \fIparent\fR's children to insert the new item.
If \fIindex\fR is less than or equal to zero, 
the new node is inserted at the beginning;
if \fIindex\fR is greater than or equal to the current number of children,
it is inserted at the end.
If \fB\-id\fR is specified, it is used as the item identifier;
\fIid\fR must not already exist in the tree.
Otherwise, a new unique identifier is generated.
.RS
.PP
\fIpathname \fBinsert\fR returns the item identifier of the
newly created item.
See \fBITEM OPTIONS\fR for the list of available options.
.RE
.TP
\fIpathname \fBinstate \fIstatespec\fR ?\fIscript\fR?
Test the widget state; see \fIttk::widget(n)\fR.
.TP
\fIpathname \fBitem \fIitem\fR ?\fI\-option \fR?\fIvalue \-option value...\fR?
Query or modify the options for the specified \fIitem\fR.
If no \fI\-option\fR is specified, 
returns a dictionary of option/value pairs.
If a single \fI\-option\fR is specified, 
returns the value of that option.
Otherwise, the item's options are updated with the specified values.
See \fBITEM OPTIONS\fR for the list of available options.
.TP
\fIpathname \fBmove \fIitem parent index\fR
Moves \fIitem\fR to position \fIindex\fR in \fIparent\fR's list of children.
It is illegal to move an item under one of its descendants.
.RS
.PP
If \fIindex\fR is less than or equal to zero, \fIitem\fR is moved
to the beginning; if greater than or equal to the number of children,
it is moved to the end.
.RE
.TP 
\fIpathname \fBnext \fIitem\fR
Returns the identifier of \fIitem\fR's next sibling,
or \fB{}\fR if \fIitem\fR is the last child of its parent.
.TP
\fIpathname \fBparent \fIitem\fR
Returns the ID of the parent of \fIitem\fR,
or \fB{}\fR if \fIitem\fR is at the top level of the hierarchy.
.TP 
\fIpathname \fBprev \fIitem\fR
Returns the identifier of \fIitem\fR's previous sibling,
or \fB{}\fR if \fIitem\fR is the first child of its parent.
.TP
\fIpathname \fBsee \fIitem\fR
Ensure that \fIitem\fR is visible:
sets all of \fIitem\fR's ancestors to \fB\-open true\fR,
and scrolls the widget if necessary so that \fIitem\fR is 
within the visible portion of the tree.
.TP
\fIpathname \fBselection\fR ?\fIselop itemList\fR?
If \fIselop\fR is not specified, returns the list of selected items.
Otherwise, \fIselop\fR is one of the following:
.RS
.TP
\fIpathname \fBselection set \fIitemList\fR
\fIitemList\fR becomes the new selection.
.TP
\fIpathname \fBselection add \fIitemList\fR
Add \fIitemList\fR to the selection
.TP
\fIpathname \fBselection remove \fIitemList\fR
Remove \fIitemList\fR from the selection
.TP
\fIpathname \fBselection toggle \fIitemList\fR
Toggle the selection state of each item in \fIitemList\fR.
.RE
.TP
\fIpathname \fBset \fIitem\fR ?\fIcolumn\fR? ?\fIvalue\fR?
With one argument, returns a dictionary of column/value pairs
for the specified \fIitem\fR.
With two arguments, returns the current value of the specified \fIcolumn\fR.
With three arguments, sets the value of column \fIcolumn\fR
in item \fIitem\fR to the specified \fIvalue\fR.
See also \fBCOLUMN IDENTIFIERS\fR.
.TP
\fIpathname \fBstate\fR ?\fIstateSpec\fR?
Modify or query the widget state; see \fIttk::widget(n)\fR.
.TP
\fIpathName \fBtag \fIargs...\fR
.RS
.TP
\fIpathName \fBtag bind \fItagName \fR?\fIsequence\fR? ?\fIscript\fR?
Add a Tk binding script for the event sequence \fIsequence\fR 
to the tag \fItagName\fR.  When an X event is delivered to an item,
binding scripts for each of the item's \fB\-tags\fR are evaluated
in order as per \fIbindtags(n)\fR.
.RS
.PP
\fB<KeyPress>\fR, \fB<KeyRelease>\fR, and virtual events
are sent to the focus item.
\fB<ButtonPress>\fR, \fB<ButtonRelease>\fR, and \fB<Motion>\fR events
are sent to the item under the mouse pointer.  
No other event types are supported.
.PP
The binding \fIscript\fR undergoes \fB%\fR-substitutions before 
evaluation; see \fBbind(n)\fR for details.
.RE
.TP
\fIpathName \fBtag configure \fItagName\fR ?\fIoption\fR? ?\fIvalue option value...\fR?
Query or modify the options for the specified \fItagName\fR.
If one or more \fIoption/value\fR pairs are specified,
sets the value of those options for the specified tag.
If a single \fIoption\fR is specified, 
returns the value of that option 
(or the empty string if the option has not been specified for \fItagName\fR).
With no additional arguments, 
returns a dictionary of the option settings for \fItagName\fR.
See \fBTAG OPTIONS\fR for the list of available options.
.TP
\fIpathName \fBtag has \fItagName\fR ?\fIitem\fR?
If \fIitem\fR is specified, returns 1 or 0
depending on whether the specified item has the named tag.
Otherwise, returns a list of all items which have
the specified tag.
.TP
\fIpathName \fBtag names\fR
Returns a list of all tags used by the widget.
.TP
\fIpathName \fBtag add\fR \fItag\fR \fIitems\fR
Adds the specified \fItag\fR to each of the listed \fIitems\fR.
If \fItag\fR is already present for a particular item,
then the \fB-tags\fR for that item are unchanged.
.TP
\fIpathName \fBtag remove\fR \fItag\fR ?\fIitems\fR?
Removes the specified \fItag\fR from each of the listed \fIitems\fR.
If \fIitems\fR is omitted, removes \fItag\fR from each item in the tree.
If \fItag\fR is not present for a particular item,
then the \fB-tags\fR for that item are unchanged.
.RE
.TP
\fIpathName \fBxview \fIargs\fR
Standard command for horizontal scrolling; see \fIwidget(n)\fR.
.TP
\fIpathName \fByview \fIargs\fR
Standard command for vertical scrolling; see \fIttk::widget(n)\fR.
.SH "ITEM OPTIONS"
.PP
The following item options may be specified for items
in the \fBinsert\fR and \fBitem\fR widget commands.
.OP \-text text Text
The textual label to display for the item.
.OP \-image image Image
A Tk image, displayed to the left of the label.
.OP \-values values Values
The list of values associated with the item.
.RS
.PP
Each item should have the same number of values as
the \fB\-columns\fR widget option.
If there are fewer values than columns,
the remaining values are assumed empty.
If there are more values than columns,
the extra values are ignored.
.RE
.OP \-open open Open
A boolean value indicating whether the item's children
should be displayed (\fB\-open true\fR) or hidden (\fB\-open false\fR).
.OP \-tags tags Tags
A list of tags associated with this item.  
.SH "TAG OPTIONS"
.PP
The following options may be specified on tags:
.IP \fB\-foreground\fR
Specifies the text foreground color.
.IP \fB\-background\fR
Specifies the cell or item background color.
.IP \fB\-font\fR
Specifies the font to use when drawing text.
.\" ??? Maybe: .IP \-anchor
.\" ??? Maybe: .IP \-padding
.\" ??? Maybe: .IP \-text
.IP \fB\-image\fR
Specifies the item image, in case the item's \fB\-image\fR option is empty.
.\" .PP
.\" \fI(@@@@@@ TODO: sort out order of precedence for options)\fR
.SH "COLUMN IDENTIFIERS"
.PP
Column identifiers take any of the following forms:
.IP \(bu
A symbolic name from the list of \fB\-columns\fR.
.IP \(bu
An integer \fIn\fR, specifying the \fIn\fRth data column.
.IP \(bu
A string of the form \fB#\fIn\fR, where \fIn\fR is an integer,
specifying the \fIn\fRth display column.
.PP
\fBNOTE:\fR 
Item \fB\-values\fR may be displayed in a different order than 
the order in which they are stored.
.PP
\fBNOTE:\fR Column #0 always refers to the tree column,
even if \fB\-show tree\fR is not specified.
.PP
A \fIdata column number\fR is an index into an item's \fB\-values\fR list;
a \fIdisplay column number\fR is the column number in the tree
where the values are displayed.  
Tree labels are displayed in column #0.
If \fB\-displaycolumns\fR is not set,
then data column \fIn\fR is displayed in display column \fB#\fIn+1\fR.
Again, \fBcolumn #0 always refers to the tree column\fR.
.SH "VIRTUAL EVENTS"
.PP
The treeview widget generates the following virtual events.
.IP <<TreeviewSelect>>
Generated whenever the selection changes.
.IP <<TreeviewOpen>>
Generated just before setting the focus item to \fB\-open true\fR.
.IP <<TreeviewClose>>
Generated just after setting the focus item to \fB\-open false\fR.
.PP
The \fBfocus\fR and \fBselection\fR widget commands can be used
to determine the affected item or items.
'\" Not yet:
'\" In Tk 8.5, the affected item is also passed as the \fB\-detail\fR field
'\" of the virtual event.
.SH "SEE ALSO"
ttk::widget(n), listbox(n), image(n), bind(n)
'\" Local Variables:
'\" mode: nroff
'\" End:
@


1.21
log
@Added note that the 'move' operation restores detached nodes.
@
text
@d7 1
a7 1
'\" RCS: @@(#) $Id: ttk_treeview.n,v 1.20 2008/09/23 13:36:58 dkf Exp $
d381 14
@


1.20
log
@Fix [Bug 2118116]
@
text
@d7 1
a7 1
'\" RCS: @@(#) $Id: ttk_treeview.n,v 1.19 2008/06/30 22:57:03 dkf Exp $
d15 1
a15 1
\fBttk::treeview\fR \fIpathname \fR?\fIoptions\fR?
d101 1
a101 1
\fIpathname \fBbbox\fR \fIitem\fR ?\fIcolumn\fR?
d110 1
a110 1
\fIpathname \fBcget\fR \fIoption\fR
d113 1
a113 1
\fIpathname \fBchildren\fR \fIitem\fR ?\fInewchildren\fR?
d126 1
a126 1
\fIpathname \fBcolumn\fR \fIcolumn\fR ?\fI\-option \fR?\fIvalue \-option value...\fR?
d167 1
a167 1
\fIpathname \fBdelete\fR \fIitemList\fR
d172 1
a172 1
\fIpathname \fBdetach\fR \fIitemList\fR
d176 2
a177 1
but will not be displayed.
d190 1
a190 1
\fIpathname \fBheading\fR \fIcolumn\fR ?\fI\-option \fR?\fIvalue \-option value...\fR?
d218 1
a218 1
\fIpathname \fBidentify region\fR \fI x y\fR
d235 1
a235 1
\fIpathname \fBidentify item\fR \fIx y\fR
d238 1
a238 1
\fIpathname \fBidentify column\fR \fIx y\fR
d242 1
a242 1
\fIpathname \fBidentify element\fR \fIx y\fR
d245 1
a245 1
\fIpathname \fBidentify row\fR \fIx y\fR
d255 1
a255 1
\fIpathname \fBinsert\fR \fIparent\fR \fIindex\fR ?\fB\-id \fIid\fR? \fIoptions...\fR
d279 1
a279 1
\fIpathname \fBitem\fR \fIitem\fR ?\fI\-option \fR?\fIvalue \-option value...\fR?
d310 1
a310 1
\fIpathname \fBsee\fR \fIitem\fR
d316 1
a316 1
\fIpathname \fBselection\fR ?\fIselop\fR \fIitemList\fR?
d334 1
a334 1
\fIpathname \fBset\fR \fIitem\fR ?\fIcolumn\fR? ?\fIvalue\fR?
d365 1
a365 1
\fIpathName \fBtag configure\fR \fItagName\fR ?\fIoption\fR? ?\fIvalue option value...\fR?
d376 1
a376 1
\fIpathName \fBtag has\fR \fItagName\fR ?\fIitem\fR?
d426 2
a427 2
.PP
\fI(@@@@@@ TODO: sort out order of precedence for options)\fR
@


1.19
log
@Minor doc updates (removing out of date changebars, improving typedef formatting,
 etc.)
@
text
@a0 1
'\" -*- nroff -*-
d7 1
a7 1
'\" RCS: @@(#) $Id: ttk_treeview.n,v 1.18 2008/05/23 20:20:05 jenglish Exp $
d469 3
@


1.18
log
@Batch of ttk::treeview enhancements:
+ Added [$tv identify region], [$tv identify element],
  and [$tv identify item] subcommands.
+ Simplified bindings.
+ Added [$tv tag has] subcommand.
+ Tag-related display improvements: setting a tag -background
  or -foreground no longer overrides selection feedback.
+ Don't need separate 'Item', 'Cell', and 'Row' style
  settings anymore, only the base "Treeview" style is used.
@
text
@d1 1
d8 1
a8 1
'\" RCS: @@(#) $Id: ttk_treeview.n,v 1.17 2008/01/29 15:38:00 dkf Exp $
d19 1
d100 1
d389 1
d413 1
d429 1
d454 1
@


1.17
log
@Adjusted handling of the standard options part of the Ttk manual pages so
that they are documented in the correct location. [Bug 1876493]
@
text
@d7 1
a7 1
'\" RCS: @@(#) $Id: ttk_treeview.n,v 1.16 2007/12/14 16:29:24 jenglish Exp $
d61 2
a62 5
.RS
.PP
If set to \fB#all\fP (the default), all columns are shown in the order
given.
.RE
d104 1
a104 1
If the \fIitem\fR is not visible 
d215 18
a232 1
\fIpathname \fBidentify row\fR \fIx y\fR
d238 6
d333 1
a333 1
for the specified \fIitem\fR.  
d372 6
@


1.17.2.1
log
@        Major backport of 8.6 Ttk for 8.5.9.  Most changes were only being
        committed to head (8.6), although they could apply for 8.5 as well.
        This re-sync makes future work easier to maintain and adds some
        useful work for 8.5 users. Notable changes:
        - Lots of code cleanup
        - Some bug fixes never backported
        - Addition of ttk::spinbox
        - minor color changes
        - Improved Vista/7 styling
        - Move to tile version 0.8.6 (pseudo-package)
        - ABI and API compatible (even $w identify)
        - minor new features (extended $w identify)
@
text
@d7 1
a7 1
'\" RCS: @@(#) $Id: ttk_treeview.n,v 1.22 2010/03/28 21:43:25 jenglish Exp $
d10 1
a10 1
.TH ttk::treeview n 8.5.9 Tk "Tk Themed Widget"
d15 1
a15 1
\fBttk::treeview \fIpathname \fR?\fIoptions\fR?
a17 1
.PP
d61 5
a65 2
If set to \fB#all\fP (the default),
all columns are shown in the order given.
a100 1
.PP
d102 1
a102 1
\fIpathname \fBbbox \fIitem\fR ?\fIcolumn\fR?
d107 1
a107 1
If the \fIitem\fR is not visible
d111 1
a111 1
\fIpathname \fBcget \fIoption\fR
d114 1
a114 1
\fIpathname \fBchildren \fIitem\fR ?\fInewchildren\fR?
d127 1
a127 1
\fIpathname \fBcolumn \fIcolumn\fR ?\fI\-option \fR?\fIvalue \-option value...\fR?
d168 1
a168 1
\fIpathname \fBdelete \fIitemList\fR
d173 1
a173 1
\fIpathname \fBdetach \fIitemList\fR
d177 1
a177 2
with the \fBmove\fR operation,
but will not be displayed until that is done.
d190 1
a190 1
\fIpathname \fBheading \fIcolumn\fR ?\fI\-option \fR?\fIvalue \-option value...\fR?
d218 1
a218 18
\fIpathname \fBidentify region \fIx y\fR
.RS
Returns one of:
.IP heading
Tree heading area;
use [\fBpathname identify column \fIx y\fR]
to determine the heading number.
.IP separator
Space between two column headings;
[\fBpathname identify column \fIx y\fR]
will return the display column identifier
of the heading to left of the separator.
.IP tree
The tree area.
.IP cell
A data cell.
.RE
\fIpathname \fBidentify item \fIx y\fR
d221 1
a221 1
\fIpathname \fBidentify column \fIx y\fR
a223 6
.TP
\fIpathname \fBidentify element \fIx y\fR
The element at position \fIx,y\fR.
.TP
\fIpathname \fBidentify row \fIx y\fR
Obsolescent synonym for \fIpathname \fBidentify item\fR.
d232 1
a232 1
\fIpathname \fBinsert \fIparent index\fR ?\fB\-id \fIid\fR? \fIoptions...\fR
d256 1
a256 1
\fIpathname \fBitem \fIitem\fR ?\fI\-option \fR?\fIvalue \-option value...\fR?
d287 1
a287 1
\fIpathname \fBsee \fIitem\fR
d293 1
a293 1
\fIpathname \fBselection\fR ?\fIselop itemList\fR?
d311 1
a311 1
\fIpathname \fBset \fIitem\fR ?\fIcolumn\fR? ?\fIvalue\fR?
d313 1
a313 1
for the specified \fIitem\fR.
d342 1
a342 1
\fIpathName \fBtag configure \fItagName\fR ?\fIoption\fR? ?\fIvalue option value...\fR?
a351 20
.TP
\fIpathName \fBtag has \fItagName\fR ?\fIitem\fR?
If \fIitem\fR is specified, returns 1 or 0
depending on whether the specified item has the named tag.
Otherwise, returns a list of all items which have
the specified tag.
.TP
\fIpathName \fBtag names\fR
Returns a list of all tags used by the widget.
.TP
\fIpathName \fBtag add\fR \fItag\fR \fIitems\fR
Adds the specified \fItag\fR to each of the listed \fIitems\fR.
If \fItag\fR is already present for a particular item,
then the \fB-tags\fR for that item are unchanged.
.TP
\fIpathName \fBtag remove\fR \fItag\fR ?\fIitems\fR?
Removes the specified \fItag\fR from each of the listed \fIitems\fR.
If \fIitems\fR is omitted, removes \fItag\fR from each item in the tree.
If \fItag\fR is not present for a particular item,
then the \fB-tags\fR for that item are unchanged.
a359 1
.PP
a382 1
.PP
d395 2
a396 2
.\" .PP
.\" \fI(@@@@@@ TODO: sort out order of precedence for options)\fR
a397 1
.PP
a421 1
.PP
a436 3
'\" Local Variables:
'\" mode: nroff
'\" End:
@


1.16
log
@Fix typo [Bug 1850713].
@
text
@d7 1
a7 1
'\" RCS: @@(#) $Id: ttk_treeview.n,v 1.15 2007/12/13 15:23:44 dgp Exp $
d46 3
a48 3
.SO
\-class	\-cursor	\-takefocus	\-style
\-xscrollcommand	\-yscrollcommand
@


1.15
log
@merge stable branch onto HEAD
@
text
@d7 1
a7 1
'\" RCS: @@(#) $Id: ttk_treeview.n,v 1.5.2.5 2007/12/13 06:28:47 dgp Exp $
d342 1
a342 1
\fIpathName \fBtag configure\fR ?\fIoption\fR? ?\fIvalue option value ...\fR?
@


1.14
log
@Various minor updates to ttk_* manpages.
@
text
@d7 1
a7 1
'\" RCS: @@(#) $Id: ttk_treeview.n,v 1.13 2007/12/10 16:21:01 jenglish Exp $
@


1.13
log
@Remove extra .BEs that got added by mistake somewhere.
@
text
@d7 1
a7 1
'\" RCS: @@(#) $Id: ttk_treeview.n,v 1.12 2007/11/01 10:59:44 dkf Exp $
d432 3
a434 2
In Tk 8.5, the affected item is also passed as the \fB\-detail\fR field
of the virtual event.
@


1.12
log
@Make documentation use the name that scripts use as much as possible.
[Bug 1640073]
@
text
@d7 1
a7 1
'\" RCS: @@(#) $Id: ttk_treeview.n,v 1.11 2007/10/30 21:29:59 dkf Exp $
d11 1
d139 2
a140 3
For example,
.QW \fI$pathname \fBcolumn #\fIn \fB\-id\fR]
returns the data column associated with data column #\fIn\fR. 
@


1.11
log
@More documentation improvements
@
text
@d7 1
a7 1
'\" RCS: @@(#) $Id: ttk_treeview.n,v 1.10 2007/10/29 16:04:14 dkf Exp $
d10 1
a10 2
.TH ttk_treeview n 8.5 Tk "Tk Themed Widget"
.\" Use _ instead of :: as the name becomes a filename on install
d12 1
a12 1
ttk_treeview \- hierarchical multicolumn data display widget
d111 1
a111 1
Returns the current value of the specified \fIoption\fR; see \fIttk_widget(n)\fR.
d166 1
a166 1
Modify or query widget options; see \fIttk_widget(n)\fR.
d254 1
a254 1
Test the widget state; see \fIttk_widget(n)\fR.
d320 1
a320 1
Modify or query the widget state; see \fIttk_widget(n)\fR.
d358 1
a358 1
Standard command for vertical scrolling; see \fIttk_widget(n)\fR.
a396 1

a433 1

d435 1
a435 1
ttk_widget(n), listbox(n), image(n), bind(n)
@


1.10
log
@Lots more GOOBE stuff. Now works with 'make html'!
@
text
@d7 1
a7 1
'\" RCS: @@(#) $Id: ttk_treeview.n,v 1.9 2007/10/26 20:13:23 dgp Exp $
a16 1

a49 1

d61 5
a65 2
.br
If set to \fB#all\fP (the default), all columns are shown in the order given.
d77 2
a78 1
.br
d82 1
a82 1
.br
d85 1
a99 1

d117 2
a118 1
.br
d125 1
d247 2
a248 1
.br
d252 1
d269 2
a270 1
.br
d273 2
a274 1
it's moved to the end.
d312 1
a312 1
\fIpathname \fBset\fR \fIitem\fR ?\fIcolumn\fR ?\fIvalue\fR??
d326 1
a326 1
\fIpathName \fBtag bind \fItagName \fR?\fIsequence \fR?\fIscript\fR??
d331 2
a332 1
.br
d338 1
a338 1
.br
d341 1
a359 2

.PP
d369 2
a370 1
.br
d377 1
d385 1
a385 1
.IP \-foreground
d387 1
a387 1
.IP \-background
d389 1
a389 1
.IP \-font
d394 1
a394 1
.IP \-image
@


1.9
log
@        * doc/*.1:              Revert doc changes that broke
        * doc/*.3:              `make html` so we can get the release
        * doc/*.n:              out the door.
@
text
@d7 1
a7 1
'\" RCS: @@(#) $Id: ttk_treeview.n,v 1.5 2007/05/03 23:55:30 dkf Exp $
d26 1
a26 1
by setting the \fB-displaycolumns\fR widget option.  
d29 1
a29 1
listed in the \fB-columns\fR widget option;
d45 2
a46 2
standard \fB-[xy]scrollcommand\fR options 
and \fB[xyview\fR widget commands.
d82 1
a82 1
however they wish, regardless of the value of \fB-selectmode\fR.
d95 1
a95 1
even if \fB-show tree\fR is not specified.
d123 1
a123 1
\fIpathname \fBcolumn\fR \fIcolumn\fR ?\fI-option \fR?\fIvalue -option value...\fR?
d125 1
a125 1
If no \fI-option\fR is specified,
d127 1
a127 1
If a single \fI-option\fR is specified, 
d133 1
a133 1
\fB-id \fIname\fR
d135 2
a136 1
For example, [\fI$pathname \fBcolumn #\fIn \fB-id\fR] 
d139 1
a139 1
\fB-anchor\fR
d145 1
a145 1
\fB-minwidth\fR
d148 1
a148 1
\fB-minwidth\fR when the widget is resized or the user drags a 
d151 1
a151 1
\fB-stretch\fR
d155 1
a155 1
\fB-width \fIw\fR
d187 1
a187 1
\fIpathname \fBheading\fR \fIcolumn\fR ?\fI-option \fR?\fIvalue -option value...\fR?
d192 1
a192 1
\fB-text \fItext\fR
d195 1
a195 1
\fB-image \fIimageName\fR
d198 1
a198 1
\fB-anchor \fIanchor\fR
d202 1
a202 1
\fB-command \fIscript\fR
d229 1
a229 1
\fIpathname \fBinsert\fR \fIparent\fR \fIindex\fR ?\fB-id \fIid\fR? \fIoptions...\fR
d240 1
a240 1
If \fB-id\fR is specified, it is used as the item identifier;
d251 1
a251 1
\fIpathname \fBitem\fR \fIitem\fR ?\fI-option \fR?\fIvalue -option value...\fR?
d253 1
a253 1
If no \fI-option\fR is specified, 
d255 1
a255 1
If a single \fI-option\fR is specified, 
d282 1
a282 1
sets all of \fIitem\fR's ancestors to \fB-open true\fR,
d321 1
a321 1
binding scripts for each of the item's \fB-tags\fR are evaluated
d363 1
a363 1
the \fB-columns\fR widget option.
d370 1
a370 1
should be displayed (\fB-open true\fR) or hidden (\fB-open false\fR).
d385 1
a385 1
Specifies the item image, in case the item's \fB-image\fR option is empty.
d392 1
a392 1
A symbolic name from the list of \fB-columns\fR.
d400 1
a400 1
Item \fB-values\fR may be displayed in a different order than 
d404 1
a404 1
even if \fB-show tree\fR is not specified.
d406 1
a406 1
A \fIdata column number\fR is an index into an item's \fB-values\fR list;
d410 1
a410 1
If \fB-displaycolumns\fR is not set,
d418 1
a418 1
Generated just before setting the focus item to \fB-open true\fR.
d420 1
a420 1
Generated just after setting the focus item to \fB-open false\fR.
d424 1
a424 1
In Tk 8.5, the affected item is also passed as the \fB-detail\fR field
@


1.8
log
@Lots of improvements to look and feel of manual pages
@
text
@d6 3
a8 3
'\"
'\" RCS: @@(#) $Id: ttk_treeview.n,v 1.7 2007/10/23 15:44:36 dkf Exp $
'\"
d20 21
a40 16
Each item has a textual label, an optional image, and an optional list of data
values. The data values are displayed in successive columns after the tree
label.
.PP
The order in which data values are displayed may be controlled by setting the
\fB\-displaycolumns\fR widget option. The tree widget can also display column
headings. Columns may be accessed by number or by symbolic names listed in the
\fB\-columns\fR widget option; see \fBCOLUMN IDENTIFIERS\fR.
.PP
Each item is identified by a unique name. The widget will generate item IDs if
they are not supplied by the caller. There is a distinguished root item, named
\fB{}\fR. The root item itself is not displayed; its children appear at the
top level of the hierarchy.
.PP
Each item also has a list of \fItags\fR, which can be used to associate event
bindings with individual items and control the appearance of the item.
d44 3
a46 3
Treeview widgets support horizontal and vertical scrolling with the standard
\fB\-\fR[\fBxy\fR]\fBscrollcommand\fR options and \fB[xyview\fR widget
commands.
d48 2
a49 2
\-class	\-cursor	\-takefocus
\-style	\-xscrollcommand	\-yscrollcommand
d51 1
d54 2
a55 2
A list of column identifiers, specifying the number of columns and their
names.
d58 6
a63 5
A list of column identifiers (either symbolic names or integer indices)
specifying which data columns are displayed and the order in which they
appear, or the string \fB#all\fP.
.RS
.PP
a64 1
.RE
d66 3
a68 2
Specifies the number of rows which should be visible. Note: the requested
width is determined from the sum of the column widths.
d70 3
a72 2
Specifies the internal padding for the widget. The padding is a list of up to
four length specifications; see \fBTtk_GetPaddingFromObj()\fR for details.
d74 9
a82 11
Controls how the built-in class bindings manage the selection. One of
\fBextended\fR, \fBbrowse\fR, or \fBnone\fR.
.RS
.PP
If set to \fBextended\fR (the default), multiple items may be selected. If
\fBbrowse\fR, only a single item will be selected at a time. If \fBnone\fR,
the selection will not be changed.
.PP
Note that application code and tag bindings can set the selection however they
wish, regardless of the value of \fB\-selectmode\fR.
.RE
d84 2
a85 2
A list containing zero or more of the following values, specifying which
elements of the tree to display.
d88 1
a88 1
Display tree labels in column #0.
d94 2
a95 2
\fBNOTE:\fR Column #0 always refers to the tree column, even if \fB\-show
tree\fR is not specified.
d97 1
d101 7
a107 6
.
Returns the bounding box (relative to the treeview widget's window) of the
specified \fIitem\fR in the form \fIx y width height\fR. If \fIcolumn\fR is
specified, returns the bounding box of that cell. If the \fIitem\fR is not
visible (i.e., if it is a descendant of a closed item or is scrolled
offscreen), returns the empty list.
d110 1
a110 3
.
Returns the current value of the specified \fIoption\fR; see
\fIttk_widget(n)\fR.
d113 44
a156 47
.
If \fInewchildren\fR is not specified, returns the list of children belonging
to \fIitem\fR.
.RS
.PP
If \fInewchildren\fR is specified, replaces \fIitem\fR's child list with
\fInewchildren\fR. Items in the old child list not present in the new child
list are detached from the tree. None of the items in \fInewchildren\fR may be
an ancestor of \fIitem\fR.
.RE
.TP
\fIpathname \fBcolumn\fR \fIcolumn\fR ?\fI\-option \fR?\fIvalue \-option value...\fR?
.
Query or modify the options for the specified \fIcolumn\fR. If no
\fI\-option\fR is specified, returns a dictionary of option/value pairs. If a
single \fI\-option\fR is specified, returns the value of that option.
Otherwise, the options are updated with the specified values. The following
options may be set on each column:
.RS
.TP
\fB\-id \fIname\fR
.
The column name. This is a read-only option. For example, [\fI$pathname
\fBcolumn #\fIn \fB\-id\fR] returns the data column associated with data
column #\fIn\fR.
.TP
\fB\-anchor\fR
.
Specifies how the text in this column should be aligned with respect to the
cell. One of \fBn\fR, \fBne\fR, \fBe\fR, \fBse\fR, \fBs\fR, \fBsw\fR, \fBw\fR,
\fBnw\fR, or \fBcenter\fR.
.TP
\fB\-minwidth\fR
.
The minimum width of the column in pixels. The treeview widget will not make
the column any smaller than \fB\-minwidth\fR when the widget is resized or the
user drags a column separator.
.TP
\fB\-stretch\fR
.
Specifies whether or not the column's width should be adjusted when the widget
is resized.
.TP
\fB\-width \fIw\fR
.
The width of the column in pixels. Default is something reasonable, probably
200 or so.
a161 1
.
d165 3
a167 3
.
Deletes each of the items in \fIitemList\fR and all of their descendants. The
root item may not be deleted. See also: \fBdetach\fR.
d170 6
a175 5
.
Unlinks all of the specified items in \fIitemList\fR from the tree. The items
and all of their descendants are still present and may be reinserted at
another point in the tree but will not be displayed. The root item may not be
detached. See also: \fBdelete\fR.
d178 2
a179 2
.
Returns 1 if the specified \fIitem\fR is present in the tree, 0 otherwise.
d182 2
a183 3
.
If \fIitem\fR is specified, sets the focus item to \fIitem\fR. Otherwise,
returns the current focus item, or \fB{}\fR if there is none.
d185 4
a188 5
.TP
\fIpathname \fBheading\fR \fIcolumn\fR ?\fI\-option \fR?\fIvalue \-option value...\fR?
.
Query or modify the heading options for the specified \fIcolumn\fR. Valid
options are:
d191 1
a191 2
\fB\-text \fItext\fR
.
d194 1
a194 2
\fB\-image \fIimageName\fR
.
d197 3
a199 4
\fB\-anchor \fIanchor\fR
.
Specifies how the heading text should be aligned. One of the standard Tk
anchor values.
d201 1
a201 2
\fB\-command \fIscript\fR
.
d208 4
a211 4
.
Returns a description of the specified \fIcomponent\fR under the point given
by \fIx\fR and \fIy\fR, or the empty string if no such \fIcomponent\fR is
present at that position. The following subcommands are supported:
a214 1
.
d218 2
a219 3
.
Returns the data column identifier of the cell at position \fIx\fR. The tree
column has ID \fB#0\fR.
d221 2
a222 2
See \fBCOLUMN IDENTIFIERS\fR for a discussion of display columns and data
columns.
a225 1
.
d228 18
a245 16
\fIpathname \fBinsert\fR \fIparent\fR \fIindex\fR ?\fB\-id \fIid\fR? \fIoptions...\fR
.
Creates a new item. \fIparent\fR is the item ID of the parent item, or the
empty string \fB{}\fR to create a new top-level item. \fIindex\fR is an
integer, or the value \fBend\fR, specifying where in the list of
\fIparent\fR's children to insert the new item. If \fIindex\fR is less than or
equal to zero, the new node is inserted at the beginning; if \fIindex\fR is
greater than or equal to the current number of children, it is inserted at the
end. If \fB\-id\fR is specified, it is used as the item identifier; \fIid\fR
must not already exist in the tree. Otherwise, a new unique identifier is
generated.
.RS
.PP
\fIpathname \fBinsert\fR returns the item identifier of the newly created
item. See \fBITEM OPTIONS\fR for the list of available options.
.RE
a247 1
.
d250 8
a257 7
\fIpathname \fBitem\fR \fIitem\fR ?\fI\-option \fR?\fIvalue \-option value...\fR?
.
Query or modify the options for the specified \fIitem\fR. If no \fI\-option\fR
is specified, returns a dictionary of option/value pairs. If a single
\fI\-option\fR is specified, returns the value of that option. Otherwise, the
item's options are updated with the specified values. See \fBITEM OPTIONS\fR
for the list of available options.
a259 1
.
d262 5
a266 7
.RS
.PP
If \fIindex\fR is less than or equal to zero, \fIitem\fR is moved to the
beginning; if greater than or equal to the number of children, it's moved to
the end.
.RE
.TP
d268 2
a269 3
.
Returns the identifier of \fIitem\fR's next sibling, or \fB{}\fR if \fIitem\fR
is the last child of its parent.
d272 3
a274 4
.
Returns the ID of the parent of \fIitem\fR, or \fB{}\fR if \fIitem\fR is at
the top level of the hierarchy.
.TP
d276 2
a277 3
.
Returns the identifier of \fIitem\fR's previous sibling, or \fB{}\fR if
\fIitem\fR is the first child of its parent.
d280 3
a282 3
.
Ensure that \fIitem\fR is visible: sets all of \fIitem\fR's ancestors to
\fB\-open true\fR, and scrolls the widget if necessary so that \fIitem\fR is
a285 1
.
a290 1
.
a293 1
.
a296 1
.
a299 1
.
d304 6
a309 6
.
With one argument, returns a dictionary of column/value pairs for the
specified \fIitem\fR. With two arguments, returns the current value of the
specified \fIcolumn\fR. With three arguments, sets the value of column
\fIcolumn\fR in item \fIitem\fR to the specified \fIvalue\fR. See also
\fBCOLUMN IDENTIFIERS\fR.
a311 1
.
a314 1
.
d318 13
a330 15
.
Add a Tk binding script for the event sequence \fIsequence\fR to the tag
\fItagName\fR. When an X event is delivered to an item, binding scripts for
each of the item's \fB\-tags\fR are evaluated in order as per
\fIbindtags(n)\fR.
.RS
.PP
\fB<KeyPress>\fR, \fB<KeyRelease>\fR, and virtual events are sent to the focus
item. \fB<ButtonPress>\fR, \fB<ButtonRelease>\fR, and \fB<Motion>\fR events
are sent to the item under the mouse pointer. No other event types are
supported.
.PP
The binding \fIscript\fR undergoes \fB%\fR-substitutions before evaluation;
see \fBbind(n)\fR for details.
.RE
d333 9
a341 8
.
Query or modify the options for the specified \fItagName\fR. If one or more
\fIoption/value\fR pairs are specified, sets the value of those options for
the specified tag. If a single \fIoption\fR is specified, returns the value of
that option (or the empty string if the option has not been specified for
\fItagName\fR). With no additional arguments, returns a dictionary of the
option settings for \fItagName\fR. See \fBTAG OPTIONS\fR for the list of
available options.
a344 1
.
a347 1
.
d349 1
d352 2
a353 2
The following item options may be specified for items in the \fBinsert\fR and
\fBitem\fR widget commands.
d360 7
a366 7
.RS
.PP
Each item should have the same number of values as the \fB\-columns\fR widget
option. If there are fewer values than columns, the remaining values are
assumed empty. If there are more values than columns, the extra values are
ignored.
.RE
d368 2
a369 2
A boolean value indicating whether the item's children should be displayed
(\fB\-open true\fR) or hidden (\fB\-open false\fR).
d371 1
a371 1
A list of tags associated with this item.
d384 1
a384 1
Specifies the item image, in case the item's \fB\-image\fR option is empty.
d387 1
d391 1
a391 1
A symbolic name from the list of \fB\-columns\fR.
d395 2
a396 5
A string of the form \fB#\fIn\fR, where \fIn\fR is an integer, specifying the
\fIn\fRth display column.
.PP
\fBNOTE:\fR Item \fB\-values\fR may be displayed in a different order than the
order in which they are stored.
d398 14
a411 9
\fBNOTE:\fR Column #0 always refers to the tree column, even if \fB\-show
tree\fR is not specified.
.PP
A \fIdata column number\fR is an index into an item's \fB\-values\fR list; a
\fIdisplay column number\fR is the column number in the tree where the values
are displayed. Tree labels are displayed in column #0. If
\fB\-displaycolumns\fR is not set, then data column \fIn\fR is displayed in
display column \fB#\fIn+1\fR. Again, \fBcolumn #0 always refers to the tree
column\fR.
d414 1
a414 1
.IP \fB<<TreeviewSelect>>\fR
d416 10
a425 8
.IP \fB<<TreeviewOpen>>\fR
Generated just before setting the focus item to \fB\-open true\fR.
.IP \fB<<TreeviewClose>>\fR
Generated just after setting the focus item to \fB\-open false\fR.
.PP
The \fBfocus\fR and \fBselection\fR widget commands can be used to determine
the affected item or items. In Tk 8.5, the affected item is also passed as the
\fB\-detail\fR field of the virtual event.
@


1.7
log
@Rendering-with-groff GOOBE.
@
text
@d7 1
a7 1
'\" RCS: @@(#) $Id: ttk_treeview.n,v 1.6 2007/10/22 14:33:13 dkf Exp $
d43 2
a44 2
\-class	\-cursor	\-takefocus	\-style
\-xscrollcommand	\-yscrollcommand
a45 1

a90 1

a439 1

@


1.6
log
@Documentation improvements, all minor.
@
text
@d7 1
a7 1
'\" RCS: @@(#) $Id: ttk_treeview.n,v 1.5 2007/05/03 23:55:30 dkf Exp $
d56 2
a57 1
.br
d59 1
d69 2
a70 1
.br
d74 1
a74 1
.br
d77 1
d112 2
a113 1
.br
d118 1
d247 2
a248 1
.br
d251 1
d269 2
a270 1
.br
d274 1
d342 2
a343 1
.br
d348 1
a348 1
.br
d351 1
d381 2
a382 1
.br
d387 1
d432 1
a432 1
.IP <<TreeviewSelect>>
d434 1
a434 1
.IP <<TreeviewOpen>>
d436 1
a436 1
.IP <<TreeviewClose>>
@


1.5
log
@Spelling fixes. [Bug 1686210]
@
text
@d6 3
a8 3
'\" 
'\" RCS: @@(#) $Id: ttk_treeview.n,v 1.4 2006/12/18 19:33:13 jenglish Exp $
'\" 
d20 16
a35 21
Each item has a textual label, an optional image, 
and an optional list of data values.
The data values are displayed in successive columns after
the tree label.
.PP
The order in which data values are displayed may be controlled
by setting the \fB-displaycolumns\fR widget option.  
The tree widget can also display column headings.
Columns may be accessed by number or by symbolic names 
listed in the \fB-columns\fR widget option;
see \fBCOLUMN IDENTIFIERS\fR.
.PP
Each item is identified by a unique name.
The widget will generate item IDs if they are not supplied by the caller.
There is a distinguished root item, named \fB{}\fR.
The root item itself is not displayed;
its children appear at the top level of the hierarchy.
.PP
Each item also has a list of \fItags\fR,
which can be used to associate event bindings with individual items
and control the appearance of the item.
d39 3
a41 3
Treeview widgets support horizontal and vertical scrolling with the
standard \fB-[xy]scrollcommand\fR options 
and \fB[xyview\fR widget commands.
d49 2
a50 2
A list of column identifiers, 
specifying the number of columns and their names.
d53 3
a55 5
A list of column identifiers 
(either symbolic names or integer indices)
specifying which data columns are displayed 
and the order in which they appear, 
or the string \fB#all\fP.
d59 2
a60 3
Specifies the number of rows which should be visible.
Note:
the requested width is determined from the sum of the column widths.
d62 2
a63 3
Specifies the internal padding for the widget.
The padding is a list of up to four length specifications;
see \fBTtk_GetPaddingFromObj()\fR for details.
d65 2
a66 2
Controls how the built-in class bindings manage the selection.
One of \fBextended\fR, \fBbrowse\fR, or \fBnone\fR.
d68 3
a70 3
If set to \fBextended\fR (the default), multiple items may be selected.
If \fBbrowse\fR, only a single item will be selected at a time.
If \fBnone\fR, the selection will not be changed.
d72 2
a73 2
Note that application code and tag bindings can set the selection 
however they wish, regardless of the value of \fB-selectmode\fR.
d75 2
a76 2
A list containing zero or more of the following values, specifying
which elements of the tree to display.
d79 1
a79 1
Display tree labels in column #0.  
d85 2
a86 2
\fBNOTE:\fR Column #0 always refers to the tree column,
even if \fB-show tree\fR is not specified.
d92 6
a97 7
Returns the bounding box (relative to the treeview widget's window)
of the specified \fIitem\fR
in the form \fIx y width height\fR.
If \fIcolumn\fR is specified, returns the bounding box of that cell.
If the \fIitem\fR is not visible 
(i.e., if it is a descendant of a closed item or is scrolled offscreen),
returns the empty list.
d100 3
a102 1
Returns the current value of the specified \fIoption\fR; see \fIttk_widget(n)\fR.
d105 3
a107 2
If \fInewchildren\fR is not specified,
returns the list of children belonging to \fIitem\fR.
d109 12
a120 15
If \fInewchildren\fR is specified, replaces \fIitem\fR's child list
with \fInewchildren\fR.  
Items in the old child list not present in the new child list
are detached from the tree.
None of the items in \fInewchildren\fR may be an ancestor
of \fIitem\fR.
.TP
\fIpathname \fBcolumn\fR \fIcolumn\fR ?\fI-option \fR?\fIvalue -option value...\fR?
Query or modify the options for the specified \fIcolumn\fR.
If no \fI-option\fR is specified,
returns a dictionary of option/value pairs.
If a single \fI-option\fR is specified, 
returns the value of that option.
Otherwise, the options are updated with the specified values.
The following options may be set on each column:
d123 27
a149 24
\fB-id \fIname\fR
The column name.  This is a read-only option.
For example, [\fI$pathname \fBcolumn #\fIn \fB-id\fR] 
returns the data column associated with data column #\fIn\fR. 
.TP
\fB-anchor\fR
Specifies how the text in this column should be aligned
with respect to the cell. One of
\fBn\fR, \fBne\fR, \fBe\fR, \fBse\fR,
\fBs\fR, \fBsw\fR, \fBw\fR, \fBnw\fR, or \fBcenter\fR.
.TP
\fB-minwidth\fR
The minimum width of the column in pixels.
The treeview widget will not make the column any smaller than
\fB-minwidth\fR when the widget is resized or the user drags a 
column separator.
.TP
\fB-stretch\fR
Specifies whether or not the column's width should be adjusted
when the widget is resized.
.TP
\fB-width \fIw\fR
The width of the column in pixels.  Default is something reasonable,
probably 200 or so.
d155 1
d159 3
a161 3
Deletes each of the items in \fIitemList\fR and all of their descendants.
The root item may not be deleted.
See also: \fBdetach\fR.
d164 5
a168 6
Unlinks all of the specified items in \fIitemList\fR from the tree.
The items and all of their descendants are still present
and may be reinserted at another point in the tree
but will not be displayed.
The root item may not be detached.
See also: \fBdelete\fR.
d171 2
a172 2
Returns 1 if the specified \fIitem\fR is present in the tree,
0 otherwise.
d175 3
a177 2
If \fIitem\fR is specified, sets the focus item to \fIitem\fR.
Otherwise, returns the current focus item, or \fB{}\fR if there is none.
d179 5
a183 4
.TP 
\fIpathname \fBheading\fR \fIcolumn\fR ?\fI-option \fR?\fIvalue -option value...\fR?
Query or modify the heading options for the specified \fIcolumn\fR.
Valid options are:
d186 2
a187 1
\fB-text \fItext\fR
d190 2
a191 1
\fB-image \fIimageName\fR
d194 4
a197 3
\fB-anchor \fIanchor\fR
Specifies how the heading text should be aligned.
One of the standard Tk anchor values.
d199 2
a200 1
\fB-command \fIscript\fR
d207 4
a210 4
Returns a description of the specified \fIcomponent\fR
under the point given by \fIx\fR and \fIy\fR,
or the empty string if no such \fIcomponent\fR is present at that position.
The following subcommands are supported:
d214 1
d218 3
a220 2
Returns the data column identifier of the cell at position \fIx\fR.
The tree column has ID \fB#0\fR.
d222 2
a223 2
See \fBCOLUMN IDENTIFIERS\fR for a discussion of display columns
and data columns.
d227 1
d230 11
a240 14
\fIpathname \fBinsert\fR \fIparent\fR \fIindex\fR ?\fB-id \fIid\fR? \fIoptions...\fR
Creates a new item.  
\fIparent\fR is the item ID of the parent item,
or the empty string \fB{}\fR
to create a new top-level item.
\fIindex\fR is an integer, or the value \fBend\fR, specifying where in the
list of \fIparent\fR's children to insert the new item.
If \fIindex\fR is less than or equal to zero, 
the new node is inserted at the beginning;
if \fIindex\fR is greater than or equal to the current number of children,
it is inserted at the end.
If \fB-id\fR is specified, it is used as the item identifier;
\fIid\fR must not already exist in the tree.
Otherwise, a new unique identifier is generated.
d242 2
a243 3
\fIpathname \fBinsert\fR returns the item identifier of the
newly created item.
See \fBITEM OPTIONS\fR for the list of available options.
d246 1
d249 7
a255 8
\fIpathname \fBitem\fR \fIitem\fR ?\fI-option \fR?\fIvalue -option value...\fR?
Query or modify the options for the specified \fIitem\fR.
If no \fI-option\fR is specified, 
returns a dictionary of option/value pairs.
If a single \fI-option\fR is specified, 
returns the value of that option.
Otherwise, the item's options are updated with the specified values.
See \fBITEM OPTIONS\fR for the list of available options.
d258 1
d262 4
a265 4
If \fIindex\fR is less than or equal to zero, \fIitem\fR is moved
to the beginning; if greater than or equal to the number of children,
it's moved to the end.
.TP 
d267 3
a269 2
Returns the identifier of \fIitem\fR's next sibling,
or \fB{}\fR if \fIitem\fR is the last child of its parent.
d272 4
a275 3
Returns the ID of the parent of \fIitem\fR,
or \fB{}\fR if \fIitem\fR is at the top level of the hierarchy.
.TP 
d277 3
a279 2
Returns the identifier of \fIitem\fR's previous sibling,
or \fB{}\fR if \fIitem\fR is the first child of its parent.
d282 3
a284 3
Ensure that \fIitem\fR is visible:
sets all of \fIitem\fR's ancestors to \fB-open true\fR,
and scrolls the widget if necessary so that \fIitem\fR is 
d288 1
d294 1
d298 1
d302 1
d306 1
d311 6
a316 6
With one argument, returns a dictionary of column/value pairs
for the specified \fIitem\fR.  
With two arguments, returns the current value of the specified \fIcolumn\fR.
With three arguments, sets the value of column \fIcolumn\fR
in item \fIitem\fR to the specified \fIvalue\fR.
See also \fBCOLUMN IDENTIFIERS\fR.
d319 1
d323 1
d327 5
a331 4
Add a Tk binding script for the event sequence \fIsequence\fR 
to the tag \fItagName\fR.  When an X event is delivered to an item,
binding scripts for each of the item's \fB-tags\fR are evaluated
in order as per \fIbindtags(n)\fR.
d333 4
a336 5
\fB<KeyPress>\fR, \fB<KeyRelease>\fR, and virtual events
are sent to the focus item.
\fB<ButtonPress>\fR, \fB<ButtonRelease>\fR, and \fB<Motion>\fR events
are sent to the item under the mouse pointer.  
No other event types are supported.
d338 2
a339 2
The binding \fIscript\fR undergoes \fB%\fR-substitutions before 
evaluation; see \fBbind(n)\fR for details.
d342 8
a349 9
Query or modify the options for the specified \fItagName\fR.
If one or more \fIoption/value\fR pairs are specified,
sets the value of those options for the specified tag.
If a single \fIoption\fR is specified, 
returns the value of that option 
(or the empty string if the option has not been specified for \fItagName\fR).
With no additional arguments, 
returns a dictionary of the option settings for \fItagName\fR.
See \fBTAG OPTIONS\fR for the list of available options.
d353 1
d357 1
a358 1

d361 2
a362 2
The following item options may be specified for items
in the \fBinsert\fR and \fBitem\fR widget commands.
d370 4
a373 6
Each item should have the same number of values as
the \fB-columns\fR widget option.
If there are fewer values than columns,
the remaining values are assumed empty.
If there are more values than columns,
the extra values are ignored.
d375 2
a376 2
A boolean value indicating whether the item's children
should be displayed (\fB-open true\fR) or hidden (\fB-open false\fR).
d378 1
a378 1
A list of tags associated with this item.  
d391 1
a391 1
Specifies the item image, in case the item's \fB-image\fR option is empty.
a393 1

d397 1
a397 1
A symbolic name from the list of \fB-columns\fR.
d401 8
a408 2
A string of the form \fB#\fIn\fR, where \fIn\fR is an integer,
specifying the \fIn\fRth display column.
d410 6
a415 14
\fBNOTE:\fR 
Item \fB-values\fR may be displayed in a different order than 
the order in which they are stored.
.PP
\fBNOTE:\fR Column #0 always refers to the tree column,
even if \fB-show tree\fR is not specified.
.PP
A \fIdata column number\fR is an index into an item's \fB-values\fR list;
a \fIdisplay column number\fR is the column number in the tree
where the values are displayed.  
Tree labels are displayed in column #0.
If \fB-displaycolumns\fR is not set,
then data column \fIn\fR is displayed in display column \fB#\fIn+1\fR.
Again, \fBcolumn #0 always refers to the tree column\fR.
d421 1
a421 1
Generated just before setting the focus item to \fB-open true\fR.
d423 1
a423 1
Generated just after setting the focus item to \fB-open false\fR.
d425 3
a427 4
The \fBfocus\fR and \fBselection\fR widget commands can be used
to determine the affected item or items.
In Tk 8.5, the affected item is also passed as the \fB-detail\fR field
of the virtual event.
@


1.5.2.1
log
@merge updates from HEAD
@
text
@d7 1
a7 1
'\" RCS: @@(#) $Id: ttk_treeview.n,v 1.5 2007/05/03 23:55:30 dkf Exp $
d20 21
a40 16
Each item has a textual label, an optional image, and an optional list of data
values. The data values are displayed in successive columns after the tree
label.
.PP
The order in which data values are displayed may be controlled by setting the
\fB\-displaycolumns\fR widget option. The tree widget can also display column
headings. Columns may be accessed by number or by symbolic names listed in the
\fB\-columns\fR widget option; see \fBCOLUMN IDENTIFIERS\fR.
.PP
Each item is identified by a unique name. The widget will generate item IDs if
they are not supplied by the caller. There is a distinguished root item, named
\fB{}\fR. The root item itself is not displayed; its children appear at the
top level of the hierarchy.
.PP
Each item also has a list of \fItags\fR, which can be used to associate event
bindings with individual items and control the appearance of the item.
d44 3
a46 3
Treeview widgets support horizontal and vertical scrolling with the standard
\fB\-\fR[\fBxy\fR]\fBscrollcommand\fR options and \fB[xyview\fR widget
commands.
d54 2
a55 2
A list of column identifiers, specifying the number of columns and their
names.
d58 6
a63 5
A list of column identifiers (either symbolic names or integer indices)
specifying which data columns are displayed and the order in which they
appear, or the string \fB#all\fP.
.RS
.PP
a64 1
.RE
d66 3
a68 2
Specifies the number of rows which should be visible. Note: the requested
width is determined from the sum of the column widths.
d70 3
a72 2
Specifies the internal padding for the widget. The padding is a list of up to
four length specifications; see \fBTtk_GetPaddingFromObj()\fR for details.
d74 9
a82 11
Controls how the built-in class bindings manage the selection. One of
\fBextended\fR, \fBbrowse\fR, or \fBnone\fR.
.RS
.PP
If set to \fBextended\fR (the default), multiple items may be selected. If
\fBbrowse\fR, only a single item will be selected at a time. If \fBnone\fR,
the selection will not be changed.
.PP
Note that application code and tag bindings can set the selection however they
wish, regardless of the value of \fB\-selectmode\fR.
.RE
d84 2
a85 2
A list containing zero or more of the following values, specifying which
elements of the tree to display.
d88 1
a88 1
Display tree labels in column #0.
d94 2
a95 2
\fBNOTE:\fR Column #0 always refers to the tree column, even if \fB\-show
tree\fR is not specified.
d101 7
a107 6
.
Returns the bounding box (relative to the treeview widget's window) of the
specified \fIitem\fR in the form \fIx y width height\fR. If \fIcolumn\fR is
specified, returns the bounding box of that cell. If the \fIitem\fR is not
visible (i.e., if it is a descendant of a closed item or is scrolled
offscreen), returns the empty list.
d110 1
a110 3
.
Returns the current value of the specified \fIoption\fR; see
\fIttk_widget(n)\fR.
d113 44
a156 47
.
If \fInewchildren\fR is not specified, returns the list of children belonging
to \fIitem\fR.
.RS
.PP
If \fInewchildren\fR is specified, replaces \fIitem\fR's child list with
\fInewchildren\fR. Items in the old child list not present in the new child
list are detached from the tree. None of the items in \fInewchildren\fR may be
an ancestor of \fIitem\fR.
.RE
.TP
\fIpathname \fBcolumn\fR \fIcolumn\fR ?\fI\-option \fR?\fIvalue \-option value...\fR?
.
Query or modify the options for the specified \fIcolumn\fR. If no
\fI\-option\fR is specified, returns a dictionary of option/value pairs. If a
single \fI\-option\fR is specified, returns the value of that option.
Otherwise, the options are updated with the specified values. The following
options may be set on each column:
.RS
.TP
\fB\-id \fIname\fR
.
The column name. This is a read-only option. For example, [\fI$pathname
\fBcolumn #\fIn \fB\-id\fR] returns the data column associated with data
column #\fIn\fR.
.TP
\fB\-anchor\fR
.
Specifies how the text in this column should be aligned with respect to the
cell. One of \fBn\fR, \fBne\fR, \fBe\fR, \fBse\fR, \fBs\fR, \fBsw\fR, \fBw\fR,
\fBnw\fR, or \fBcenter\fR.
.TP
\fB\-minwidth\fR
.
The minimum width of the column in pixels. The treeview widget will not make
the column any smaller than \fB\-minwidth\fR when the widget is resized or the
user drags a column separator.
.TP
\fB\-stretch\fR
.
Specifies whether or not the column's width should be adjusted when the widget
is resized.
.TP
\fB\-width \fIw\fR
.
The width of the column in pixels. Default is something reasonable, probably
200 or so.
a161 1
.
d165 3
a167 3
.
Deletes each of the items in \fIitemList\fR and all of their descendants. The
root item may not be deleted. See also: \fBdetach\fR.
d170 6
a175 5
.
Unlinks all of the specified items in \fIitemList\fR from the tree. The items
and all of their descendants are still present and may be reinserted at
another point in the tree but will not be displayed. The root item may not be
detached. See also: \fBdelete\fR.
d178 2
a179 2
.
Returns 1 if the specified \fIitem\fR is present in the tree, 0 otherwise.
d182 2
a183 3
.
If \fIitem\fR is specified, sets the focus item to \fIitem\fR. Otherwise,
returns the current focus item, or \fB{}\fR if there is none.
d185 4
a188 5
.TP
\fIpathname \fBheading\fR \fIcolumn\fR ?\fI\-option \fR?\fIvalue \-option value...\fR?
.
Query or modify the heading options for the specified \fIcolumn\fR. Valid
options are:
d191 1
a191 2
\fB\-text \fItext\fR
.
d194 1
a194 2
\fB\-image \fIimageName\fR
.
d197 3
a199 4
\fB\-anchor \fIanchor\fR
.
Specifies how the heading text should be aligned. One of the standard Tk
anchor values.
d201 1
a201 2
\fB\-command \fIscript\fR
.
d208 4
a211 4
.
Returns a description of the specified \fIcomponent\fR under the point given
by \fIx\fR and \fIy\fR, or the empty string if no such \fIcomponent\fR is
present at that position. The following subcommands are supported:
a214 1
.
d218 2
a219 3
.
Returns the data column identifier of the cell at position \fIx\fR. The tree
column has ID \fB#0\fR.
d221 2
a222 2
See \fBCOLUMN IDENTIFIERS\fR for a discussion of display columns and data
columns.
a225 1
.
d228 18
a245 16
\fIpathname \fBinsert\fR \fIparent\fR \fIindex\fR ?\fB\-id \fIid\fR? \fIoptions...\fR
.
Creates a new item. \fIparent\fR is the item ID of the parent item, or the
empty string \fB{}\fR to create a new top-level item. \fIindex\fR is an
integer, or the value \fBend\fR, specifying where in the list of
\fIparent\fR's children to insert the new item. If \fIindex\fR is less than or
equal to zero, the new node is inserted at the beginning; if \fIindex\fR is
greater than or equal to the current number of children, it is inserted at the
end. If \fB\-id\fR is specified, it is used as the item identifier; \fIid\fR
must not already exist in the tree. Otherwise, a new unique identifier is
generated.
.RS
.PP
\fIpathname \fBinsert\fR returns the item identifier of the newly created
item. See \fBITEM OPTIONS\fR for the list of available options.
.RE
a247 1
.
d250 8
a257 7
\fIpathname \fBitem\fR \fIitem\fR ?\fI\-option \fR?\fIvalue \-option value...\fR?
.
Query or modify the options for the specified \fIitem\fR. If no \fI\-option\fR
is specified, returns a dictionary of option/value pairs. If a single
\fI\-option\fR is specified, returns the value of that option. Otherwise, the
item's options are updated with the specified values. See \fBITEM OPTIONS\fR
for the list of available options.
a259 1
.
d262 5
a266 7
.RS
.PP
If \fIindex\fR is less than or equal to zero, \fIitem\fR is moved to the
beginning; if greater than or equal to the number of children, it's moved to
the end.
.RE
.TP
d268 2
a269 3
.
Returns the identifier of \fIitem\fR's next sibling, or \fB{}\fR if \fIitem\fR
is the last child of its parent.
d272 3
a274 4
.
Returns the ID of the parent of \fIitem\fR, or \fB{}\fR if \fIitem\fR is at
the top level of the hierarchy.
.TP
d276 2
a277 3
.
Returns the identifier of \fIitem\fR's previous sibling, or \fB{}\fR if
\fIitem\fR is the first child of its parent.
d280 3
a282 3
.
Ensure that \fIitem\fR is visible: sets all of \fIitem\fR's ancestors to
\fB\-open true\fR, and scrolls the widget if necessary so that \fIitem\fR is
a285 1
.
a290 1
.
a293 1
.
a296 1
.
a299 1
.
d304 6
a309 6
.
With one argument, returns a dictionary of column/value pairs for the
specified \fIitem\fR. With two arguments, returns the current value of the
specified \fIcolumn\fR. With three arguments, sets the value of column
\fIcolumn\fR in item \fIitem\fR to the specified \fIvalue\fR. See also
\fBCOLUMN IDENTIFIERS\fR.
a311 1
.
a314 1
.
d318 13
a330 15
.
Add a Tk binding script for the event sequence \fIsequence\fR to the tag
\fItagName\fR. When an X event is delivered to an item, binding scripts for
each of the item's \fB\-tags\fR are evaluated in order as per
\fIbindtags(n)\fR.
.RS
.PP
\fB<KeyPress>\fR, \fB<KeyRelease>\fR, and virtual events are sent to the focus
item. \fB<ButtonPress>\fR, \fB<ButtonRelease>\fR, and \fB<Motion>\fR events
are sent to the item under the mouse pointer. No other event types are
supported.
.PP
The binding \fIscript\fR undergoes \fB%\fR-substitutions before evaluation;
see \fBbind(n)\fR for details.
.RE
d333 9
a341 8
.
Query or modify the options for the specified \fItagName\fR. If one or more
\fIoption/value\fR pairs are specified, sets the value of those options for
the specified tag. If a single \fIoption\fR is specified, returns the value of
that option (or the empty string if the option has not been specified for
\fItagName\fR). With no additional arguments, returns a dictionary of the
option settings for \fItagName\fR. See \fBTAG OPTIONS\fR for the list of
available options.
a344 1
.
a347 1
.
d349 1
d352 2
a353 2
The following item options may be specified for items in the \fBinsert\fR and
\fBitem\fR widget commands.
d360 7
a366 7
.RS
.PP
Each item should have the same number of values as the \fB\-columns\fR widget
option. If there are fewer values than columns, the remaining values are
assumed empty. If there are more values than columns, the extra values are
ignored.
.RE
d368 2
a369 2
A boolean value indicating whether the item's children should be displayed
(\fB\-open true\fR) or hidden (\fB\-open false\fR).
d371 1
a371 1
A list of tags associated with this item.
d384 1
a384 1
Specifies the item image, in case the item's \fB\-image\fR option is empty.
d387 1
d391 1
a391 1
A symbolic name from the list of \fB\-columns\fR.
d395 2
a396 8
A string of the form \fB#\fIn\fR, where \fIn\fR is an integer, specifying the
\fIn\fRth display column.
.PP
\fBNOTE:\fR Item \fB\-values\fR may be displayed in a different order than the
order in which they are stored.
.PP
\fBNOTE:\fR Column #0 always refers to the tree column, even if \fB\-show
tree\fR is not specified.
d398 14
a411 6
A \fIdata column number\fR is an index into an item's \fB\-values\fR list; a
\fIdisplay column number\fR is the column number in the tree where the values
are displayed. Tree labels are displayed in column #0. If
\fB\-displaycolumns\fR is not set, then data column \fIn\fR is displayed in
display column \fB#\fIn+1\fR. Again, \fBcolumn #0 always refers to the tree
column\fR.
d414 1
a414 1
.IP \fB<<TreeviewSelect>>\fR
d416 9
a424 8
.IP \fB<<TreeviewOpen>>\fR
Generated just before setting the focus item to \fB\-open true\fR.
.IP \fB<<TreeviewClose>>\fR
Generated just after setting the focus item to \fB\-open false\fR.
.PP
The \fBfocus\fR and \fBselection\fR widget commands can be used to determine
the affected item or items. In Tk 8.5, the affected item is also passed as the
\fB\-detail\fR field of the virtual event.
@


1.5.2.2
log
@merge updates from HEAD
@
text
@d7 1
a7 1
'\" RCS: @@(#) $Id: ttk_treeview.n,v 1.5.2.1 2007/10/24 12:59:32 dgp Exp $
d20 16
a35 21
Each item has a textual label, an optional image, 
and an optional list of data values.
The data values are displayed in successive columns after
the tree label.
.PP
The order in which data values are displayed may be controlled
by setting the \fB-displaycolumns\fR widget option.  
The tree widget can also display column headings.
Columns may be accessed by number or by symbolic names 
listed in the \fB-columns\fR widget option;
see \fBCOLUMN IDENTIFIERS\fR.
.PP
Each item is identified by a unique name.
The widget will generate item IDs if they are not supplied by the caller.
There is a distinguished root item, named \fB{}\fR.
The root item itself is not displayed;
its children appear at the top level of the hierarchy.
.PP
Each item also has a list of \fItags\fR,
which can be used to associate event bindings with individual items
and control the appearance of the item.
d39 3
a41 3
Treeview widgets support horizontal and vertical scrolling with the
standard \fB-[xy]scrollcommand\fR options 
and \fB[xyview\fR widget commands.
d49 2
a50 2
A list of column identifiers, 
specifying the number of columns and their names.
d53 5
a57 6
A list of column identifiers 
(either symbolic names or integer indices)
specifying which data columns are displayed 
and the order in which they appear, 
or the string \fB#all\fP.
.br
d59 1
d61 2
a62 3
Specifies the number of rows which should be visible.
Note:
the requested width is determined from the sum of the column widths.
d64 2
a65 3
Specifies the internal padding for the widget.
The padding is a list of up to four length specifications;
see \fBTtk_GetPaddingFromObj()\fR for details.
d67 11
a77 9
Controls how the built-in class bindings manage the selection.
One of \fBextended\fR, \fBbrowse\fR, or \fBnone\fR.
.br
If set to \fBextended\fR (the default), multiple items may be selected.
If \fBbrowse\fR, only a single item will be selected at a time.
If \fBnone\fR, the selection will not be changed.
.br
Note that application code and tag bindings can set the selection 
however they wish, regardless of the value of \fB-selectmode\fR.
d79 2
a80 2
A list containing zero or more of the following values, specifying
which elements of the tree to display.
d83 1
a83 1
Display tree labels in column #0.  
d89 2
a90 2
\fBNOTE:\fR Column #0 always refers to the tree column,
even if \fB-show tree\fR is not specified.
d96 6
a101 7
Returns the bounding box (relative to the treeview widget's window)
of the specified \fIitem\fR
in the form \fIx y width height\fR.
If \fIcolumn\fR is specified, returns the bounding box of that cell.
If the \fIitem\fR is not visible 
(i.e., if it is a descendant of a closed item or is scrolled offscreen),
returns the empty list.
d104 3
a106 1
Returns the current value of the specified \fIoption\fR; see \fIttk_widget(n)\fR.
d109 47
a155 44
If \fInewchildren\fR is not specified,
returns the list of children belonging to \fIitem\fR.
.br
If \fInewchildren\fR is specified, replaces \fIitem\fR's child list
with \fInewchildren\fR.  
Items in the old child list not present in the new child list
are detached from the tree.
None of the items in \fInewchildren\fR may be an ancestor
of \fIitem\fR.
.TP
\fIpathname \fBcolumn\fR \fIcolumn\fR ?\fI-option \fR?\fIvalue -option value...\fR?
Query or modify the options for the specified \fIcolumn\fR.
If no \fI-option\fR is specified,
returns a dictionary of option/value pairs.
If a single \fI-option\fR is specified, 
returns the value of that option.
Otherwise, the options are updated with the specified values.
The following options may be set on each column:
.RS
.TP
\fB-id \fIname\fR
The column name.  This is a read-only option.
For example, [\fI$pathname \fBcolumn #\fIn \fB-id\fR] 
returns the data column associated with data column #\fIn\fR. 
.TP
\fB-anchor\fR
Specifies how the text in this column should be aligned
with respect to the cell. One of
\fBn\fR, \fBne\fR, \fBe\fR, \fBse\fR,
\fBs\fR, \fBsw\fR, \fBw\fR, \fBnw\fR, or \fBcenter\fR.
.TP
\fB-minwidth\fR
The minimum width of the column in pixels.
The treeview widget will not make the column any smaller than
\fB-minwidth\fR when the widget is resized or the user drags a 
column separator.
.TP
\fB-stretch\fR
Specifies whether or not the column's width should be adjusted
when the widget is resized.
.TP
\fB-width \fIw\fR
The width of the column in pixels.  Default is something reasonable,
probably 200 or so.
d161 1
d165 3
a167 3
Deletes each of the items in \fIitemList\fR and all of their descendants.
The root item may not be deleted.
See also: \fBdetach\fR.
d170 5
a174 6
Unlinks all of the specified items in \fIitemList\fR from the tree.
The items and all of their descendants are still present
and may be reinserted at another point in the tree
but will not be displayed.
The root item may not be detached.
See also: \fBdelete\fR.
d177 2
a178 2
Returns 1 if the specified \fIitem\fR is present in the tree,
0 otherwise.
d181 3
a183 2
If \fIitem\fR is specified, sets the focus item to \fIitem\fR.
Otherwise, returns the current focus item, or \fB{}\fR if there is none.
d185 5
a189 4
.TP 
\fIpathname \fBheading\fR \fIcolumn\fR ?\fI-option \fR?\fIvalue -option value...\fR?
Query or modify the heading options for the specified \fIcolumn\fR.
Valid options are:
d192 2
a193 1
\fB-text \fItext\fR
d196 2
a197 1
\fB-image \fIimageName\fR
d200 4
a203 3
\fB-anchor \fIanchor\fR
Specifies how the heading text should be aligned.
One of the standard Tk anchor values.
d205 2
a206 1
\fB-command \fIscript\fR
d213 4
a216 4
Returns a description of the specified \fIcomponent\fR
under the point given by \fIx\fR and \fIy\fR,
or the empty string if no such \fIcomponent\fR is present at that position.
The following subcommands are supported:
d220 1
d224 3
a226 2
Returns the data column identifier of the cell at position \fIx\fR.
The tree column has ID \fB#0\fR.
d228 2
a229 2
See \fBCOLUMN IDENTIFIERS\fR for a discussion of display columns
and data columns.
d233 1
d236 16
a251 18
\fIpathname \fBinsert\fR \fIparent\fR \fIindex\fR ?\fB-id \fIid\fR? \fIoptions...\fR
Creates a new item.  
\fIparent\fR is the item ID of the parent item,
or the empty string \fB{}\fR
to create a new top-level item.
\fIindex\fR is an integer, or the value \fBend\fR, specifying where in the
list of \fIparent\fR's children to insert the new item.
If \fIindex\fR is less than or equal to zero, 
the new node is inserted at the beginning;
if \fIindex\fR is greater than or equal to the current number of children,
it is inserted at the end.
If \fB-id\fR is specified, it is used as the item identifier;
\fIid\fR must not already exist in the tree.
Otherwise, a new unique identifier is generated.
.br
\fIpathname \fBinsert\fR returns the item identifier of the
newly created item.
See \fBITEM OPTIONS\fR for the list of available options.
d254 1
d257 7
a263 8
\fIpathname \fBitem\fR \fIitem\fR ?\fI-option \fR?\fIvalue -option value...\fR?
Query or modify the options for the specified \fIitem\fR.
If no \fI-option\fR is specified, 
returns a dictionary of option/value pairs.
If a single \fI-option\fR is specified, 
returns the value of that option.
Otherwise, the item's options are updated with the specified values.
See \fBITEM OPTIONS\fR for the list of available options.
d266 1
d269 7
a275 5
.br
If \fIindex\fR is less than or equal to zero, \fIitem\fR is moved
to the beginning; if greater than or equal to the number of children,
it's moved to the end.
.TP 
d277 3
a279 2
Returns the identifier of \fIitem\fR's next sibling,
or \fB{}\fR if \fIitem\fR is the last child of its parent.
d282 4
a285 3
Returns the ID of the parent of \fIitem\fR,
or \fB{}\fR if \fIitem\fR is at the top level of the hierarchy.
.TP 
d287 3
a289 2
Returns the identifier of \fIitem\fR's previous sibling,
or \fB{}\fR if \fIitem\fR is the first child of its parent.
d292 3
a294 3
Ensure that \fIitem\fR is visible:
sets all of \fIitem\fR's ancestors to \fB-open true\fR,
and scrolls the widget if necessary so that \fIitem\fR is 
d298 1
d304 1
d308 1
d312 1
d316 1
d321 6
a326 6
With one argument, returns a dictionary of column/value pairs
for the specified \fIitem\fR.  
With two arguments, returns the current value of the specified \fIcolumn\fR.
With three arguments, sets the value of column \fIcolumn\fR
in item \fIitem\fR to the specified \fIvalue\fR.
See also \fBCOLUMN IDENTIFIERS\fR.
d329 1
d333 1
d337 15
a351 13
Add a Tk binding script for the event sequence \fIsequence\fR 
to the tag \fItagName\fR.  When an X event is delivered to an item,
binding scripts for each of the item's \fB-tags\fR are evaluated
in order as per \fIbindtags(n)\fR.
.br
\fB<KeyPress>\fR, \fB<KeyRelease>\fR, and virtual events
are sent to the focus item.
\fB<ButtonPress>\fR, \fB<ButtonRelease>\fR, and \fB<Motion>\fR events
are sent to the item under the mouse pointer.  
No other event types are supported.
.br
The binding \fIscript\fR undergoes \fB%\fR-substitutions before 
evaluation; see \fBbind(n)\fR for details.
d354 8
a361 9
Query or modify the options for the specified \fItagName\fR.
If one or more \fIoption/value\fR pairs are specified,
sets the value of those options for the specified tag.
If a single \fIoption\fR is specified, 
returns the value of that option 
(or the empty string if the option has not been specified for \fItagName\fR).
With no additional arguments, 
returns a dictionary of the option settings for \fItagName\fR.
See \fBTAG OPTIONS\fR for the list of available options.
d365 1
d369 1
a370 1

d373 2
a374 2
The following item options may be specified for items
in the \fBinsert\fR and \fBitem\fR widget commands.
d381 7
a387 7
.br
Each item should have the same number of values as
the \fB-columns\fR widget option.
If there are fewer values than columns,
the remaining values are assumed empty.
If there are more values than columns,
the extra values are ignored.
d389 2
a390 2
A boolean value indicating whether the item's children
should be displayed (\fB-open true\fR) or hidden (\fB-open false\fR).
d392 1
a392 1
A list of tags associated with this item.  
d405 1
a405 1
Specifies the item image, in case the item's \fB-image\fR option is empty.
a407 1

d411 1
a411 1
A symbolic name from the list of \fB-columns\fR.
d415 8
a422 2
A string of the form \fB#\fIn\fR, where \fIn\fR is an integer,
specifying the \fIn\fRth display column.
d424 6
a429 14
\fBNOTE:\fR 
Item \fB-values\fR may be displayed in a different order than 
the order in which they are stored.
.PP
\fBNOTE:\fR Column #0 always refers to the tree column,
even if \fB-show tree\fR is not specified.
.PP
A \fIdata column number\fR is an index into an item's \fB-values\fR list;
a \fIdisplay column number\fR is the column number in the tree
where the values are displayed.  
Tree labels are displayed in column #0.
If \fB-displaycolumns\fR is not set,
then data column \fIn\fR is displayed in display column \fB#\fIn+1\fR.
Again, \fBcolumn #0 always refers to the tree column\fR.
d432 1
a432 1
.IP <<TreeviewSelect>>
d434 8
a441 9
.IP <<TreeviewOpen>>
Generated just before setting the focus item to \fB-open true\fR.
.IP <<TreeviewClose>>
Generated just after setting the focus item to \fB-open false\fR.
.PP
The \fBfocus\fR and \fBselection\fR widget commands can be used
to determine the affected item or items.
In Tk 8.5, the affected item is also passed as the \fB-detail\fR field
of the virtual event.
@


1.5.2.3
log
@merge updates from HEAD
@
text
@d7 1
a7 1
'\" RCS: @@(#) $Id$
d10 2
a11 1
.TH ttk::treeview n 8.5 Tk "Tk Themed Widget"
d13 1
a13 1
ttk::treeview \- hierarchical multicolumn data display widget
d17 1
d26 1
a26 1
by setting the \fB\-displaycolumns\fR widget option.  
d29 1
a29 1
listed in the \fB\-columns\fR widget option;
d45 2
a46 2
standard \fB\-\fR[\fBxy\fR]\fBscrollcommand\fR options 
and [\fBxy\fR]\fBview\fR widget commands.
d51 1
d63 2
a64 5
.RS
.PP
If set to \fB#all\fP (the default), all columns are shown in the order
given.
.RE
d76 1
a76 2
.RS
.PP
d80 1
a80 1
.PP
d82 1
a82 2
however they wish, regardless of the value of \fB\-selectmode\fR.
.RE
d95 1
a95 1
even if \fB\-show tree\fR is not specified.
d97 1
d110 1
a110 1
Returns the current value of the specified \fIoption\fR; see \fIttk::widget(n)\fR.
d115 1
a115 2
.RS
.PP
a121 1
.RE
d123 1
a123 1
\fIpathname \fBcolumn\fR \fIcolumn\fR ?\fI\-option \fR?\fIvalue \-option value...\fR?
d125 1
a125 1
If no \fI\-option\fR is specified,
d127 1
a127 1
If a single \fI\-option\fR is specified, 
d133 1
a133 1
\fB\-id \fIname\fR
d135 1
a135 2
For example,
.QW \fI$pathname \fBcolumn #\fIn \fB\-id\fR]
d138 1
a138 1
\fB\-anchor\fR
d144 1
a144 1
\fB\-minwidth\fR
d147 1
a147 1
\fB\-minwidth\fR when the widget is resized or the user drags a 
d150 1
a150 1
\fB\-stretch\fR
d154 1
a154 1
\fB\-width \fIw\fR
d162 1
a162 1
Modify or query widget options; see \fIttk::widget(n)\fR.
d186 1
a186 1
\fIpathname \fBheading\fR \fIcolumn\fR ?\fI\-option \fR?\fIvalue \-option value...\fR?
d191 1
a191 1
\fB\-text \fItext\fR
d194 1
a194 1
\fB\-image \fIimageName\fR
d197 1
a197 1
\fB\-anchor \fIanchor\fR
d201 1
a201 1
\fB\-command \fIscript\fR
d228 1
a228 1
\fIpathname \fBinsert\fR \fIparent\fR \fIindex\fR ?\fB\-id \fIid\fR? \fIoptions...\fR
d239 1
a239 1
If \fB\-id\fR is specified, it is used as the item identifier;
d242 1
a242 2
.RS
.PP
a245 1
.RE
d248 1
a248 1
Test the widget state; see \fIttk::widget(n)\fR.
d250 1
a250 1
\fIpathname \fBitem\fR \fIitem\fR ?\fI\-option \fR?\fIvalue \-option value...\fR?
d252 1
a252 1
If no \fI\-option\fR is specified, 
d254 1
a254 1
If a single \fI\-option\fR is specified, 
d262 1
a262 2
.RS
.PP
d265 1
a265 2
it is moved to the end.
.RE
d281 1
a281 1
sets all of \fIitem\fR's ancestors to \fB\-open true\fR,
d303 1
a303 1
\fIpathname \fBset\fR \fIitem\fR ?\fIcolumn\fR? ?\fIvalue\fR?
d312 1
a312 1
Modify or query the widget state; see \fIttk::widget(n)\fR.
d317 1
a317 1
\fIpathName \fBtag bind \fItagName \fR?\fIsequence\fR? ?\fIscript\fR?
d320 1
a320 1
binding scripts for each of the item's \fB\-tags\fR are evaluated
d322 1
a322 2
.RS
.PP
d328 1
a328 1
.PP
a330 1
.RE
d348 3
a350 1
Standard command for vertical scrolling; see \fIttk::widget(n)\fR.
d360 1
a360 2
.RS
.PP
d362 1
a362 1
the \fB\-columns\fR widget option.
a366 1
.RE
d369 1
a369 1
should be displayed (\fB\-open true\fR) or hidden (\fB\-open false\fR).
d374 1
a374 1
.IP \fB\-foreground\fR
d376 1
a376 1
.IP \fB\-background\fR
d378 1
a378 1
.IP \fB\-font\fR
d383 2
a384 2
.IP \fB\-image\fR
Specifies the item image, in case the item's \fB\-image\fR option is empty.
d387 1
d391 1
a391 1
A symbolic name from the list of \fB\-columns\fR.
d399 1
a399 1
Item \fB\-values\fR may be displayed in a different order than 
d403 1
a403 1
even if \fB\-show tree\fR is not specified.
d405 1
a405 1
A \fIdata column number\fR is an index into an item's \fB\-values\fR list;
d409 1
a409 1
If \fB\-displaycolumns\fR is not set,
d417 1
a417 1
Generated just before setting the focus item to \fB\-open true\fR.
d419 1
a419 1
Generated just after setting the focus item to \fB\-open false\fR.
d423 1
a423 1
In Tk 8.5, the affected item is also passed as the \fB\-detail\fR field
d425 1
d427 1
a427 1
ttk::widget(n), listbox(n), image(n), bind(n)
@


1.5.2.4
log
@merge updates from HEAD
@
text
@d7 1
a7 1
'\" RCS: @@(#) $Id: ttk_treeview.n,v 1.5.2.3 2007/11/01 16:37:16 dgp Exp $
a10 1
.BS
d138 3
a140 2
For example, [\fI$pathname \fBcolumn #\fIn \fB\-id\fR]
returns the data column associated with display column #\fIn\fR. 
@


1.5.2.5
log
@merge updates from HEAD
@
text
@d7 1
a7 1
'\" RCS: @@(#) $Id$
d432 2
a433 3
'\" Not yet:
'\" In Tk 8.5, the affected item is also passed as the \fB\-detail\fR field
'\" of the virtual event.
@


1.5.2.6
log
@merge updates from HEAD
@
text
@d7 1
a7 1
'\" RCS: @@(#) $Id: ttk_treeview.n,v 1.15 2007/12/13 15:23:44 dgp Exp $
d342 1
a342 1
\fIpathName \fBtag configure\fR \fItagName\fR ?\fIoption\fR? ?\fIvalue option value...\fR?
@


1.5.2.7
log
@merge updates from HEAD
@
text
@d7 1
a7 1
'\" RCS: @@(#) $Id: ttk_treeview.n,v 1.5.2.6 2008/01/23 16:39:11 dgp Exp $
d46 3
a48 3
.SO ttk_widget
\-class	\-cursor	\-takefocus
\-style	\-xscrollcommand	\-yscrollcommand
@


1.4
log
@Big batch of ttk::treeview improvements:
    Added column '-stretch' and '-minwidth' options.
    Improved column drag and resize behavior.
    Added horizontal scrolling [#1518650].
    Row height and child indent specifiable on Treeview style.
    Decreased default row height, no default -padding.
    Use correct heading height [#1163349].
    Apply tag settings to tree item as well as to data columns
    [NOTE: 'tag configure' still buggy].
    Fix off-by-one condition when moving nodes forward [#1618142]
    Prevent overscroll ([#1173434])
    Treeview style settings specified separately in each theme.
    Added disclosure triangle element in aqua theme.
@
text
@d7 1
a7 1
'\" RCS: @@(#) $Id: ttk_treeview.n,v 1.3 2006/12/13 23:04:33 hobbs Exp $
d368 1
a368 1
A boolean value indicating whether the items's children
@


1.3
log
@	* unix/Makefile.in (install-doc): intentionally skip ttk_dialog.n
	installation (not for public consumption)

	* doc/scrollbar.n, doc/button.n, doc/checkbutton.n:
	* doc/entry.n, doc/frame.n, doc/label.n, doc/labelframe.n:
	* doc/menu.n, doc/menubutton.n, doc/panedwindow.n:
	* doc/radiobutton.n, doc/scrollbar.n, doc/ttk_*: revamp ttk docs
	to use consist nroff format (not 100% consistent with classic
	widget docs).  Add more man page cross-linking "SEE ALSO".
@
text
@d7 1
a7 1
'\" RCS: @@(#) $Id: popup.n,v 1.4 2004/06/21 20:59:29 dkf Exp $
d44 3
a46 3
Treeview widgets support vertical scrolling with the
standard \fB-yscrollcommand\fR option and \fByview\fR widget command.
They probably ought to support horizontal scrolling as well.
d49 1
a49 1
\-yscrollcommand
d144 10
d344 3
@


1.2
log
@* generic/ttk/ttkWidget.c, generic/ttk/ttkPaned.c Fix for #1603506
* library/ttk/button.tcl, library/ttk/combobox.tcl,
library/ttk/utils.tcl: Rename ttk::CopyBindings to ttk::copyBindings
* generic/ttk/ttkTreeview.c, doc/ttk_treeview.n:
-displaycolumns {} now means "no columns" instead of "all columns".
Use -displaycolumns #all for "all columns" [Fixes #1547622].
@
text
@d4 5
d11 1
d13 1
a13 1
ttk::treeview \- hierarchical multicolumn data display widget
d16 4
a19 2
.SH "DESCRIPTION"
The treeview widget displays a hierarchical collection of items.
d51 2
a52 1
.SH "WIDGET OPTIONS"
d97 1
d110 1
a110 1
Returns the current value of the specified \fIoption\fR; see \fIwidget(n)\fR.
d152 1
a152 1
Modify or query widget options; see \fIwidget(n)\fR.
d238 1
a238 1
Test the widget state; see \fIwidget(n)\fR.
d302 1
a302 1
Modify or query the widget state; see \fIwidget(n)\fR.
d335 1
a335 1
Standard command for vertical scrolling; see \fIwidget(n)\fR.
d374 1
d412 1
d414 1
a414 1
widget(n), listbox(n), image(n), bind(n)
@


1.1
log
@	* doc/ttk_Geometry.3, doc/ttk_Theme.3, doc/ttk_button.n:
	* doc/ttk_checkbutton.n, doc/ttk_combobox.n, doc/ttk_dialog.n:
	* doc/ttk_entry.n, doc/ttk_frame.n, doc/ttk_image.n:
	* doc/ttk_intro.n, doc/ttk_label.n, doc/ttk_labelframe.n:
	* doc/ttk_menubutton.n, doc/ttk_notebook.n, doc/ttk_panedwindow.n:
	* doc/ttk_progressbar.n, doc/ttk_radiobutton.n, doc/ttk_scrollbar.n:
	* doc/ttk_separator.n, doc/ttk_sizegrip.n, doc/ttk_style.n:
	* doc/ttk_treeview.n, doc/ttk_widget.n,:
	* generic/ttk/ttk.decls, generic/ttk/ttkBlink.c:
	* generic/ttk/ttkButton.c, generic/ttk/ttkCache.c:
	* generic/ttk/ttkClamTheme.c, generic/ttk/ttkClassicTheme.c:
	* generic/ttk/ttkDecls.h, generic/ttk/ttkDefaultTheme.c:
	* generic/ttk/ttkElements.c, generic/ttk/ttkEntry.c:
	* generic/ttk/ttkFrame.c, generic/ttk/ttkImage.c:
	* generic/ttk/ttkInit.c, generic/ttk/ttkLabel.c:
	* generic/ttk/ttkLayout.c, generic/ttk/ttkManager.c:
	* generic/ttk/ttkManager.h, generic/ttk/ttkNotebook.c:
	* generic/ttk/ttkPanedwindow.c, generic/ttk/ttkProgress.c:
	* generic/ttk/ttkScale.c, generic/ttk/ttkScroll.c:
	* generic/ttk/ttkScrollbar.c, generic/ttk/ttkSeparator.c:
	* generic/ttk/ttkSquare.c, generic/ttk/ttkState.c:
	* generic/ttk/ttkStubInit.c, generic/ttk/ttkStubLib.c:
	* generic/ttk/ttkTagSet.c, generic/ttk/ttkTheme.c:
	* generic/ttk/ttkTheme.h, generic/ttk/ttkThemeInt.h:
	* generic/ttk/ttkTrace.c, generic/ttk/ttkTrack.c:
	* generic/ttk/ttkTreeview.c, generic/ttk/ttkWidget.c:
	* generic/ttk/ttkWidget.h:
	* library/demos/ttk_demo.tcl, library/demos/ttk_iconlib.tcl:
	* library/demos/ttk_repeater.tcl:
	* library/ttk/altTheme.tcl, library/ttk/aquaTheme.tcl:
	* library/ttk/button.tcl, library/ttk/clamTheme.tcl:
	* library/ttk/classicTheme.tcl, library/ttk/combobox.tcl:
	* library/ttk/cursors.tcl, library/ttk/defaults.tcl:
	* library/ttk/dialog.tcl, library/ttk/entry.tcl:
	* library/ttk/fonts.tcl, library/ttk/icons.tcl:
	* library/ttk/keynav.tcl, library/ttk/menubutton.tcl:
	* library/ttk/notebook.tcl, library/ttk/panedwindow.tcl:
	* library/ttk/progress.tcl, library/ttk/scale.tcl:
	* library/ttk/scrollbar.tcl, library/ttk/sizegrip.tcl:
	* library/ttk/treeview.tcl, library/ttk/ttk.tcl:
	* library/ttk/utils.tcl, library/ttk/winTheme.tcl:
	* library/ttk/xpTheme.tcl:
	* macosx/ttkMacOSXTheme.c:
	* tests/ttk/all.tcl, tests/ttk/bwidget.test, tests/ttk/combobox.test:
	* tests/ttk/entry.test, tests/ttk/image.test:
	* tests/ttk/labelframe.test, tests/ttk/layout.test:
	* tests/ttk/misc.test, tests/ttk/notebook.test:
	* tests/ttk/panedwindow.test, tests/ttk/progressbar.test:
	* tests/ttk/scrollbar.test, tests/ttk/treetags.test:
	* tests/ttk/treeview.test, tests/ttk/ttk.test, tests/ttk/validate.test:
	* win/ttkWinMonitor.c, win/ttkWinTheme.c, win/ttkWinXPTheme.c:
	First import of Ttk themed Tk widgets as branched from tile 0.7.8

	* generic/tkInt.h, generic/tkWindow.c: add Ttk_Init call, copy
	tk classic widgets to ::tk namespace.
	* library/tk.tcl: add source of ttk/ttk.tcl, define $::ttk::library.
	* unix/Makefile.in, win/Makefile.in: add Ttk build bits
	* win/configure, win/configure.in: check for uxtheme.h (XP theme).
@
text
@d52 2
a53 1
and the order in which they appear.
d55 1
a55 1
If empty (the default), all columns are shown in the order given.
@

