Listbox tab

The Listbox tab in the Properties dialog box will only appear in the dialog for Listbox objects. This tab allows you to store the select line number or the selected text into a variable as well as choose a different colour style for the selected item in the Listbox.

To edit the Listbox tab settings:

  1. Tick the Store index of selected item option if you want to save the number of the line in the Listbox object selected by the user in a variable. Click on the down arrow next to the box to list all of the variables in the current publication. Alternatively, click on the New… button to open the New Variable dialog and create a new variable.

Note:
It is important to know that the Index for the Listbox object starts at zero. In other words, if the user selects the first item in the list, the Index number stored is 0 and the variable will contain the number 0. If the user selects the second item in the list, the Index number is 1, and so on.

  1. Tick the Store selected text option if you want to save the text on the line selected by the user in the Listbox object in a variable. Click on the down arrow next to the box to list all of the variables in the current publication. Alternatively, click on the New… button to open the New Variable dialog and create a new variable.

If the first line in the Listbox object is Einstein – Biography and the user selects this line, the variable will contain the value Einstein – Biography.

  1. If you want to change one of the Selection Styles, click on the drop down button beside the effect style you want to change and select a new style or press the Customise button to create your own style.

Note:
The Effect Styles are the same as those used in the Text tab of the Properties dialog – see more information below.

  1. Click on the Apply button to save your changes.

Note:
The information saved in these variables can be used in combination with a Variable Changed trigger and an IF action to move the user to different parts of your publication based on their selection from the Listbox object or to keep a record of a users choice that you may want to show them on a page later in your publication.

Related Topics:

Using the Listbox tool

Text Effect styles

Editing Text Effect styles