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;
bb << append( img );
),
bb = Border Box( Text Box() )
)
);
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