HyperWorks Tools

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

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

Previous topic Next topic No expanding text in this topic  

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

Previous topic Next topic JavaScript is required for expanding text JavaScript is required for the print function  

NAME

::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 (see tktable documentation).

 

Returns

The table ID if successful, {} otherwise.

 

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 {}.

 

See also

Widgets