Data Driven GUI Construction


High Maintenance:

Drive GUI creation from lists included in code or external data files.

Example: Creating a menu of files to process

set fileList [list a.dat b.dat c.dat d.dat]

foreach file $fileList { $fileMenu add command -label "$file" -command "ProcessFile $file" }

Advantage:

Disadvantage:


Low Maintenance:

Drive the creation of menus from the raw data, instead of a manually created list.

Example: Creating a menu of files to process

set fileList [glob $stateArray(BASEDIR)/*.dat]

foreach file $fileList { $fileMenu add command -label "$file" -command "ProcessFile $file" }

Advantage:

Disadvantage:


[Contents]
This document was translated by troff2html v0.21 on July 18, 1997.