Can't make 'Show' re-display my screen
I am trying to display a new set of images after the user presses a button. The first part of the script sets a count, assigns the file path to the images to be displayed (which is done randomly within a set of options) and draws the window. This happens as expected the first time around. The button in question calls a function that re-assigns the images and then requests to show the new set of images. I know that the assignment is done properly but the window is not updated. What am I missing?
This is the code in question:
view gui: layout [
backdrop white
text font-size 15 "Set of pictures”
below
text join "Photo's clicked: " count
across
button 148x135 my-pict1 [ count: count + 1 ]
button 148x135 my-pict2 [ count: count + 1 ]
return
across
button 148x135 my-pict3 [ count: count + 1 ]
button 148x135 my-pict4 [ count: count + 1 ]
return
btn 148 "New set" [ set-new-picts show gui ]
]
I have also tried naming the buttons (e.g. a: button 148x135 my-pict1 [ count: count + 1 ]) and then calling:
show [a b c d]
and even trying:
show a show b show c show d
options that I collected from reading the documentation, but to no effect.
I appreciate any insight and/ or solutions