*TableForm()

Creates a record-based form to display a table.

Syntax

*TableForm (tableform_name, "tableform_label", tableform_def_name, 
                                                         table_name)

Arguments

tableform_name
The variable name of the tableform.
Data type: varname
tableform_label
The descriptive label of the tableform.
Data type: label
tableform_def_name
An existing tableform definition.
Data type: DefineTableForm
table_name
Variable name of an existing table to be displayed in the tableform.
Data type: Table

Example

*BeginCustomWizard(test1, "Plotting Window Preferences Wizard")
 *Form(frm_curve_settings2, "Set Curve Defaults", frm_curve_settings2_def, 
 dset_curve_settings, tbl_curve_0_tblfrm)
 
*TableForm( tbl_curve_0_tblfrm, "Table Form", tbl_curve_0_def, 
 dset_curve_settings.tbl_curve )
 *Dataset( dset_curve_settings, "Input dataset", dset_curve_settings_def)
*DefineForm(frm_curve_settings2_def, ds, tblfrm)
 *Prompt("Set Curve Attributes")
 *SetRowsCols(11, 7)
 
 *MergeCells(2, 1, 9, 7)
 *SetCell(1, 7, " ", , Center, No_Edit)
 *SetCell( 2, 1, tblfrm, FORM)
*EndDefine()
*DefineTableForm( tbl_curve_0_def, tbl_curve )
 *SetRowsCols(1, 6)
 *ColumnWidth(1, 7)
 
 *ColumnLabel( 1, "On/Off" ) 
 *SetCell( 1, 1, tbl_curve.c_state.value, , left, edit )
 *SetCell( 1, 2, tbl_curve.c_style.value, , left, edit )
 *SetCell( 1, 3, tbl_curve.c_color.value, , right, edit )
 *SetCell( 1, 4, tbl_curve.c_thick.value, , left, edit )
*EndDefine()

Context

*DefineSystem()

Comments

A *TableForm() is a user-defined interface to display and edit record-based data defined in a *Table.

The layout of the tableform is defined in a *DefineTableForm() block.