O'Reilly logo

Tcl/Tk in a Nutshell by Paul Raines, Jeff Tranter

Stay ahead with the world's most comprehensive technology and business learning platform.

With Safari, you learn the way you learn best. Get unlimited access to videos, live online training, learning paths, books, tutorials, and more.

Start Free Trial

No credit card required

Name

HList

tixHList pathName [option value...]

The tixHList command creates a new tixHList widget named pathName. A tixHList is used to display any data that has a hierarchical structure (e.g., filesystem directory trees)

Standard Options

-background

-borderwidth

-cursor

-font

-foreground

-highlightbackground

-highlightcolor

-highlightthickness

-padx

-pady

-relief

-selectbackground

-selectborderwidth

-selectfor eground

-takefocus

-xscrollcommand

-yscr ollcommand

 

Widget-Specific Options

-browsecmd tclCommand (browseCmd, BrowseCmd)

Command to call whenever the user browses an entry (usually by a single click) The pathName of the entry is appended as an argument.

-columns integer (columns, Columns)

Number of columns in the tixHList. Can be set at creation only. Column numbering begins at 0. List entries alway appear in column 0. Arbitrary display items can be placed in the columns to the right of an entry (e.g., file sizes and owner's name).

-command tclCommand (command, Command)

Command to call whenever the user browses an entry (usually by a single click). The pathName of the entry is appended as an argument.

-drawbranch boolean (drawBranch, DrawBranch)

Whether branch lines should be drawn to connect list entries to their parents.

-header boolean (header, Header)

Whether headers should be displayed at the top of each column.

-height amount (height, Height)

Height for the window in lines of characters.

-indent amount (indent, Indent)

Horizontal indentation between a list entry and its children.

-indicator boolean

With Safari, you learn the way you learn best. Get unlimited access to videos, live online training, learning paths, books, interactive tutorials, and more.

Start Free Trial

No credit card required