Showing an imported image into an imagearea
Posted: Mon Sep 29, 2014 10:58 am
Hi,
Let's say I have a few images that are already imported as controls in my stack, with their visible set to false.
I created a group with an image field, that should behave like a pop-up (so it becomes visible upon clicking a button) and display just one of the pre-imported images; the name of the image is passed on by the button.
Now as you can see I'm surely using the wrong syntax. Can you help me out figuring out the right one?
Thanks!!

Let's say I have a few images that are already imported as controls in my stack, with their visible set to false.
I created a group with an image field, that should behave like a pop-up (so it becomes visible upon clicking a button) and display just one of the pre-imported images; the name of the image is passed on by the button.
Code: Select all
on showPopover pTitle, imageName
set the text of field "titoloPopup" of group "gruppoImmagini" to pTitle
set the location of group "gruppoImmagini" to 1280/2, 800/2
put the short ID of image imageName into idimag
--set the imagesource of image "imgPopup" to image imageName //doesn't work
--set the imagedata of image "imgPopup" to the imagedata of image id idimag //doesn't work
--set the ID of image "imgPopup" to idimag //doesn't work
--put image imageName into image "imgPopup" //doesn't work
set the visible of group "gruppoImmagini" to true
end mostraPopover
Now as you can see I'm surely using the wrong syntax. Can you help me out figuring out the right one?
Thanks!!


