Adding Files 1
In the MPI tools palette switch to the buttons card, and drag a Bevel button to the card above the imagelist
field. [in the rte you again need to draw a button].
The PI will reflect the selection, switching to the button card, name the button Add File...
Edit the script of the button (Command-E or Script
from the Edit...
popUp on the PI)
answer picture file "Choose an image:"
if it is empty then exit mouseUp
put it into tFilePath
set the itemDel to colon
put last item of tFilePath into tFileName
put tfileName into cd fld "imageList"
set the uImagePaths of cd fld imageList to tFilePath
This will put the file name into our field, and set the field's userProp to the file path.
Switch to the browse tool, from the tool module or by using control-tab and test the button.
Unfortunatly this will replace the whole content of the field every time we choose an image. We need to be albe to build a list...