List Box Buttons
219
TPDesign4 (v3.2 or higher)
If the column is of the type "Bitmap", you will be able to select a bitmap that has already been
defined in the project.
If the column is of the type "Icon", you will be able to select an icon that has already been defined
in the project.
8. Now you will attach the List Data Table to a List Box Button - see Attaching a Static List Data Table to a
List Box Button for details.
Editing Cell Data
When you click inside a particular cell:
If column is of the type "Text", the end-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.
If the column is of the type "Bitmap", you will be able to select a bitmap that has already been
defined in the project.
If the column is of the type "Icon", you will be able to select an icon that has already been defined
in the project.
List Data Table Column Types
The following are the available column types to select from:
Text - The column will contain a variable length text value.
Icon - The column will display icons from a table of icon references.
Bitmap - The column will display bitmap images from a table of bitmap references.
Page Flip - The column will display valid page names that will be activated as page flips. This
column is hidden from the user on the display and is used as navigation.
Port/Channel Code - This column will contain a port/channel code combination that is sent to the
master upon activation of a particular row.
Attaching a Static List Data Table to a List Box Button
Once you have created a list Box Button, as well as a Static List Data Table, you are ready to associate the List
Data Table to the List Box Button. It is this association that allows the data in the List Data Table to be
displayed on the List Box Button.
1. In the Design View window, select the List Box Button that you want to associate with a List Data Table.
2. In the General tab of the Properties Control Window, click inside either the List Table Port or the List
Table Address fields. Clicking inside these fields enables the browse (...) button. Click this button to
access the Attach Table To List Box dialog.
3. This dialog lists all Static List Data Tables in your project. Select the table that you want to attach to the
selected List Box Button.
Note that once a table is selected, the Table Port and Table Address fields are automatically updated with
that table's port/address assignments.
4. Click OK to save your changes and close the dialog.
Deleting a List Data Table
To delete a List Data Table from your project:
1. Select Panel > Edit List Tables to open the Edit List Tables dialog.
2. Select the table that you want to delete, in the Tables list.
3. Click the Delete command button.
4. The program will prompt you to verify this action before the table deleted. Click OK to proceed.
To move rows, select one or more rows and click and drag them to another spot in
the table.
Comments to this Manuals