Technical information
List Box Buttons
218
TPDesign4 (v3.2 or higher)
Working With Static List Box Data
Creating a Static List Data Table
To create a Static List Data Table and associate it to a List Box Button, so that the data in the List Data Table is
displayed in the List Box button:
1. If you haven't already done so, create a new List Box button, with enough rows and columns to
accommodate the data that you will enter into the List Data Table.
2. Select Panel > Edit List Tables (or click the toolbar button) to open the Edit List Tables dialog.
3. Click New to open the Create New Table dialog, where you will specify basic properties for the new
table.
Name of Table: Type a unique name for the table.
Number of Columns: Enter the number of columns to include in the table.
Number of Rows: Enter the number of rows to include in the table.
Port: Assign a Port and Address for the table. See Working With Function Codes for more
information on Ports and Addresses.
Address: Assign a Port and Address for the table.
4. Click OK to save your changes and proceed to the Column Types dialog. Use the options in this dialog to
assign a name and type to each column in the table.
5. Click OK to save your changes and return to the Edit List Tables dialog.
Note that the Table Data display reflects the columns/rows and column names that you specified.
Also note that the table you just created is listed in the Tables list box (left side of the dialog). As you
create more new tables, each one is added to the Tables list. You can select any table from the list to edit
its properties.
6. At this point, use the command buttons along the top of this dialog to add/delete rows and columns from
the active table, resize the table, and specify a Port and Address to the table:
Add Row - Click to add a row to the table.
Delete Row - Click to delete one or more selected rows from the table.
Add Column - Click to add a column to the table. This option invokes the Column Types dialog.
Use the options in this dialog to assign a name and type to each column in the table.
Delete Column - Click to delete the column that currently has focus.
Fit Table - Click to resize the table to fit inside the Table Data window.
Expand Columns - Click to expand each column by equal amounts. Note that this option is
disabled once the table reaches the maximum allowed width.
Shrink Columns - Click to shrink each column by equal amounts. Note that this option is disabled
once the table reaches the minimum allowed width.
Port/Addr - Click to assign a unique Port and Address combination for the table. This option
invokes the Change Port/Addr dialog. Use the Table Port and Table Address fields to specify the
port/address combination.
Rename Column - This option allows you to rename the column label at the top of a column.
Power Assign - Click to open the List Table Power Assign dialog. Use the options in this dialog to
set button-level actions, channel/variable text, and code parameters to one or more selected buttons.
7. Edit the cell data as desired: When you click inside a particular cell:
If column is of the type "Text", the user will be able to enter data.
If the column is of the type "Page Flip", then a drop-down list of available pages is displayed.
If the type is of the type "Channel Code", then you will need to enter a channel port/code
combination value.
See the Working With Function Codes section on page 301 for more information on
Ports and Addresses.










