The view deck component holds multiple objects and displays only the object whose index is currently selected. One simple way to use the view deck is to cycle through a series of images using a stopwatch. Another, more typical use case is to create a navigation control for the user and then bind user input to the selection index.
The view deck’s contents can be determined by a repeater. A repeater iterates a given symbol once for each row in a table. Each instance of the symbol can have dynamic properties.
For a detailed reference of properties that affect view decks, see Common Properties and View Deck Properties.
A view deck component in DGLux5
To quickly switch between selecting the view deck and its displayed object, use the Select tool to click the view deck, and then click again without moving the mouse.
To create a view deck that cycles through a list of images:
Add some images to the view deck.
To add objects, either right-click the view deck and use the Insert menu, or drag objects into the view deck.
To create a view deck that the user can control using buttons:
Insert a text component within the group.
This is your first button. Optionally, style your button using properties and actions.
In the Property Inspector, under Selection, hover over Selected Index until a blue dot appears, and double-click the blue dot.
A pop-up opens that represents the group's Selected Index property.
To create a view deck whose contents are determined by a repeater:
In the Property Inspector, for each symbol parameter, either enter a value or bind a table column.
To bind a table column, open the table in dataflow and drag the column header to the field.
In this view deck, the row number of the table corresponds to the selection index.
You could use a group to create another repeater for this view deck's navigation buttons.