// there are a lot of pics here, pick 6 for the list
files = Files In Directory( "f:/pics" )[10 :: 15];
New Window( "Example",
H List Box(
cb = Combo Box(
files,
selection = cb << GetSelected();
img = New Image( "f:/pics/" || selection );
(bb << child) << delete;// clear the old one
bb << append( img ); // add the new one
),
bb = Border Box( Text Box() ) // start with a dummy old one
)
);
Remove the [10::15] to get all of the images. You may want to use FilterEach(...) to keep only the .JPG or .PNG files. This example assumes the image name is appropriate for the combo box display. If you need a different word, you could use the <<get method to get the index of the selected item and then use that to index the file name list.
The picture changes with each combo box selection.
Craige