::hwat::widgets::table::Table

Allows you to create a table widget with scrollbars and place in the GUI. This sortable table widget is based on the standard TKTable widget.

Syntax

Table str_tableName str_titleList str_namespace args

Arguments

str_tableName
The table pathname. This must be unique.
str_titleList
The title list which contains information for each row.
Format: { 0 Title width }
Where,
0 or 1 - sort flag (enable(1) or disable(0) column sort).
Title - column label
width - (optional), column width, must be integer.
str_namespace
If "" then the table is non expandable, if not "", then a proc ::vcl::utils::${str_namespace}::TableName must exist where TableName stands for the name of the table.
args
A list of TKTable options.

Returns

Success
The table ID.
Failure
{}

Example

::hwat::widgets::table::Table .frmTable.TableSort [{0 Name 15} {0 value 15}] "::vcl::gui::sections" -variable ::vcl::gui::utils::str_assmTable  -rows 5 -cols 5 -sparsearray 0 -bg white.

Comments

Cells of the table are initialized to {}.