Counting lines.

Getting into LiveCode for iOS? Ask your questions here.

Moderators: FourthWorld, heatherlaine, Klaus, kevinmiller, robinmiller

bn
VIP Livecode Opensource Backer
VIP Livecode Opensource Backer
Posts: 4177
Joined: Sun Jan 07, 2007 9:12 pm

Re: Counting lines.

Post by bn » Mon Apr 09, 2012 9:28 pm

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

tzenobite
Posts: 57
Joined: Sun Dec 04, 2011 3:59 pm

Re: Counting lines.

Post by tzenobite » Tue Apr 10, 2012 7:22 pm

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 :shock:
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

Dixie
Livecode Opensource Backer
Livecode Opensource Backer
Posts: 1336
Joined: Sun Jul 12, 2009 10:53 am

Re: Counting lines.

Post by Dixie » Tue Apr 10, 2012 8:36 pm

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

tzenobite
Posts: 57
Joined: Sun Dec 04, 2011 3:59 pm

Re: Counting lines.

Post by tzenobite » Tue Apr 10, 2012 9:20 pm

:shock: :shock: :shock:

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 :D
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

bn
VIP Livecode Opensource Backer
VIP Livecode Opensource Backer
Posts: 4177
Joined: Sun Jan 07, 2007 9:12 pm

Re: Counting lines.

Post by bn » Tue Apr 10, 2012 9:46 pm

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

Post Reply