Re: How can i create image selection field?
Posted: Sat Oct 10, 2020 6:56 am
Would be a lot of pictures in the runtime, when I would use the program. How do i link only the image reference during the runtime in stendalone application?
Questions and answers about the LiveCode platform.
https://forums.livecode.com/
Code: Select all
on mouseup
## Show the system OPEN dialog:
answer file "Please select an image file." with type "Images|jpg,jpeg,gif,png|"
## IT contains the path of the selected image file
put it into tFile
## Check if user clicked CANCEL
if the result = "Cancel" then
exit mouseup
end if
## 1. In case you already have an image object on your card for the user selected image:
## set the filename of img "your image here" to tFile
## 2. In case you do not have an image object already, we create one:
## create image "name of new image here"
## set the filename of img "name of new image here" to tFile
## Now scale image and set its loc etc...
## ...
end mouseupThere's a lesson about this:SEAL29 wrote: Sat Oct 10, 2020 6:56 am Would be a lot of pictures in the runtime, when I would use the program. How do i link only the image reference during the runtime in stendalone application?