In other words, each time I choose a differrent item in the list, the image on the dialog box must update. I have tried to do this, but I am unfortunately not yet an expert with this software.
Could anyone please assist?
Here is what I've got so far:
Code: Select all
Let>shapec=%cwd%\20.jpg
Dialog>MyDialog
Caption=Dialog1
Width=445
Height=289
Top=253
Left=187
ListBox=msListBox1,8,8,89,241,20%CRLF%32%CRLF%33%CRLF%34
Image=%shapec%,112,8,201,241,msImage1,0
Button=OK,344,160,75,25,3
Button=Cancel,344,200,75,25,2
Button=Update,344,120,75,25,5
EndDialog>MyDialog
Let>shapec=%cwd%\20.jpg
Show>MyDialog
Label>ActionLoop
GetDialogAction>MyDialog,r
if>r=5,Update
if>r=6,Close
if>r=2,exit
Goto>ActionLoop
Label>exit
SRT>Update
If>MyDialog.msListbox1=20
Let>shapec=20.jpg
Let>MyDialog.msImage1=%cwd%\20.jpg
EndIf
If>MyDialog.msListbox1=32
Let>shapec=32.jpg
Let>MyDialog.msImage1=%cwd%\32.jpg
EndIf
END>Update
SRT>Close
CloseDialog>MyDialog
Let>r=2
END>Close