Hi tzenobite,
it is hard for me to understand.
Could you make a sample stack with two cards and sample data that shows the problem you describe. And zip the stack and upload it here.
That would be the easiest.
Kind regards
Bernd
Counting lines.
Moderators: FourthWorld, heatherlaine, Klaus, kevinmiller, robinmiller
Re: Counting lines.
here's the infamous card
the script works just like the full stack: it gets some data from a website and builds a scroller that lays over the card's graphic even if the control's rect is smaller
you'll see, running the simulator, that the black field lays over the red background of the card

you'll see, running the simulator, that the black field lays over the red background of the card

- Attachments
-
- scroller.livecode.zip
- (9.75 KiB) Downloaded 207 times
how many hypercardist are needed to change a light bulb? one to actually do it while at least a dozen more are finding out a slightly different way to do it
proudly hypertalking since 1989
proudly hypertalking since 1989
Re: Counting lines.
If I understand you correctly, you don't want to scroll over the 'red' graphic...
If this is the case then 'lock the size and position' of group 'indicescroller'
be well
Dixie
If this is the case then 'lock the size and position' of group 'indicescroller'
be well
Dixie
Re: Counting lines.



you're right! can't believe... i had locked size and position of both the field and the group and now the scroller works in the right way
thanks a lot

how many hypercardist are needed to change a light bulb? one to actually do it while at least a dozen more are finding out a slightly different way to do it
proudly hypertalking since 1989
proudly hypertalking since 1989
Re: Counting lines.
Hi,
Dixie was faster.
But there are other minor things in your stack:
you initialize 2 scrollers.
One in the "preopenCard" handler at the end
One in the "leggiindice" handler at the end
both by "creascrollerindice"
it will not be a problem since you put the id of the last scroller into your global and delete all iOS Controls on preopencard but I still would not do it.
You could set the margins of group "indiceScroller" to 0 and the borderwidth to 0. It would make it easier to center on the card. (set the rect of group "indiceScroller" to 0,76,320,382)
kind regards
Bernd
Dixie was faster.
But there are other minor things in your stack:
you initialize 2 scrollers.
One in the "preopenCard" handler at the end
One in the "leggiindice" handler at the end
both by "creascrollerindice"
it will not be a problem since you put the id of the last scroller into your global and delete all iOS Controls on preopencard but I still would not do it.
You could set the margins of group "indiceScroller" to 0 and the borderwidth to 0. It would make it easier to center on the card. (set the rect of group "indiceScroller" to 0,76,320,382)
kind regards
Bernd