Please enable JavaScript to view this site.

ESL Documentation

This example shows how to create a table object that behaves like a list box. This table can include extra, hidden columns with additional information for the program. The size of the data in the table is limited only by the available system memory. It is also possible to allow direct editing of cells in this table.

 

Note that a table is not a direct substitute for a list box. There are some differences in behavior and the way responses are handled, so you may want to experiment with the behavior that is relevant for a particular application.

 

readonly yellow table Table

    size 80 80 at 10 10 in DR

    black foreground

 

    column headings hide     # Turn off table features that

    row headings hide        # are not relevant to List

    single row selection     # Box-like usage.

    row grid invisible

    column grid invisible

    vertical scroll bar

 

    insert string column Show

        width is 80               # Should be same width as table

        text size 32               # Max string size for entries

    insert invisible string column Hide

        text size 32

    # Could have other hidden columns.

 

    # To add rows, uncomment either of the following:

    #insert row value "Value", "Hidden"

    #insert file "filename"