Page 1 of 1
Image position
Posted: Tue Oct 20, 2020 5:03 pm
by SEAL29
When i make the scrollable group and after i place the image (with button) and when i scroll the image stays in one place it always stays on top wherever i scroll.
How can images be placed in a larger area than the size of the stack?
Re: Image position
Posted: Tue Oct 20, 2020 5:17 pm
by Klaus
That means the image is NOT part of your group, so it will be always "on top" of your scrolling group.
How did you import your image?
But what do you mean with:
How can images be placed in a larger area than the size of the stack?
Re: Image position
Posted: Tue Oct 20, 2020 5:31 pm
by jmburnod
Hi Seal,
Are you sure your image is in your group ?
Jean-Marc
Re: Image position
Posted: Tue Oct 20, 2020 6:16 pm
by SEAL29
The image adding after groupping in stendalone application. I wanted to make it 40-45 images in one page and this add within a stendalone application.
Re: Image position
Posted: Tue Oct 20, 2020 6:18 pm
by Klaus
SEAL29 wrote: ↑Tue Oct 20, 2020 6:16 pm
The image adding after groupping in stendalone application.
Yes, we guessed that, but you need to modify your import image script to make the image part of your group, so please show us the script!
Re: Image position
Posted: Tue Oct 20, 2020 6:22 pm
by SEAL29
Now i use this script.
Code: Select all
on mouseup
## Show the system OPEN dialog:
answer file "Please select an image file." with type "Images|jpg,jpeg,gif,png|"
put it into tFile
## Check if user clicked CANCEL
if the result = "Cancel" then
exit mouseup
end if
create image "pic1"
set the filename of img "pic1" to tFile
set the resizeQuality image "pic1" to "best"
set the rect image "pic1" to "1203,174,1914,574"
## ...
end mouseup
Re: Image position
Posted: Tue Oct 20, 2020 6:35 pm
by Klaus
Ah, thank you.
Just add this to the line -> create image
Code: Select all
...
## create image "pic1"
create image "pic1" IN GROUP "Name of your scrolling group here"
## That's it! :-)
set the filename of img "pic1" to tFile
...
But this way you will end with LOTS OF images named -> pic1 in your group!
Better renumber your images like this in the same script:
Code: Select all
...
## create image "pic1"
## First get the number of images in your group:
put the number of images of grp "Name of your scrolling group here" into tNumOfImages
## We raise this number by ONE:
add 1 to tNumOfImages
put "pic" & tNumOfImages into tImageName
## Now create an image with that new name:
create image tImageName IN GROUP "Name of your scrolling group here"
## That's it! :-)
set the filename of img tImageName to tFile
...
Re: Image position
Posted: Tue Oct 20, 2020 6:36 pm
by SEAL29
Thank you.
Re: Image position
Posted: Tue Oct 20, 2020 8:23 pm
by dunbarx
Seal29
put "pic" & tNumOfImages into tImageName
Do you see how this works? And how much fun LC can be?
Craig
Re: Image position
Posted: Wed Oct 21, 2020 4:29 am
by SEAL29
Yes i see.
