How do you make a list do certain actions when each item is chosen

One thing you will need is a way to map from text names of colors to the actual color values.

This sample app lets you load a table of color names and codes from the Media folder, choose a color name from a List Picker, and display that color. (Thanks to @SteveJG for the color file.)


color_codes.txt (2.4 KB)
Colors.aia (6.7 KB)
Designer
Azure

initialize global table_text to
LemonChiffon



The next thing you will need to deal with is keeping a list of components whose colors you want to change, and how to use the Any (Generic) blocks to change the color of each component as you walk the list using a FOR EACH block.

To see code like that at work, see

1 Like