Image position
Moderators: FourthWorld, heatherlaine, Klaus, kevinmiller
Image position
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?
How can images be placed in a larger area than the size of the stack?
Re: Image position
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 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
Hi Seal,
Are you sure your image is in your group ?
Jean-Marc
Are you sure your image is in your group ?
Jean-Marc
https://alternatic.ch
Re: Image position
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
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
Ah, thank you.
Just add this to the line -> create image
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:
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
...
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
Seal29
Craig
Do you see how this works? And how much fun LC can be?put "pic" & tNumOfImages into tImageName
Craig