manage five groups with one scroller (LC 5.5)

Getting into LiveCode for iOS? Ask your questions here.

Moderators: FourthWorld, heatherlaine, Klaus, kevinmiller, robinmiller

Post Reply
jmburnod
VIP Livecode Opensource Backer
VIP Livecode Opensource Backer
Posts: 2729
Joined: Sat Dec 22, 2007 5:35 pm
Contact:

manage five groups with one scroller (LC 5.5)

Post by jmburnod » Wed Apr 11, 2012 5:21 pm

Hi All,

I have made a little stack its manage five groups with one scroller.
Each group can contains 190 groups (one group contains three objects
• one grc for background
• one img for a pictogram
• on fld for the title on the pictogram

There is an option "AjustePicto) for adjust the scroller when its stop between 2 images.

Copy the current group is the next step.
I should be very happy if someone have a simple way to do that :D

Best regards

Jean-Marc
Attachments
ManageScrollers.livecode.zip
Manage five groups with one scroller
(14.35 KiB) Downloaded 238 times
Last edited by jmburnod on Thu Apr 12, 2012 6:41 pm, edited 1 time in total.
https://alternatic.ch

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

Re: manage five groups with one scroller

Post by bn » Thu Apr 12, 2012 12:29 pm

HI Jean-Marc,

I don't quite understand what you want to do.

What is the app supposed to do?

Do you want to have 190 groups (with 3 objects in each) inside a scroller group?

Could you explain a little more?

Kind regards

Bernd

Klaus
Posts: 14235
Joined: Sat Apr 08, 2006 8:41 am
Contact:

Re: manage five groups with one scroller

Post by Klaus » Thu Apr 12, 2012 1:02 pm

I know about a tailor, who managed to kill 7 (SEVEN) flies with 1 (ONE) hit!
But maybe this is a bit off-topic... :lol:

Sorry, guys, I never can restist situations like this 8)

jmburnod
VIP Livecode Opensource Backer
VIP Livecode Opensource Backer
Posts: 2729
Joined: Sat Dec 22, 2007 5:35 pm
Contact:

Re: manage five groups with one scroller

Post by jmburnod » Thu Apr 12, 2012 2:12 pm

Hi Bernd,

Thank for reply
I try to explain
What is the app supposed to do?
1. Using the native scroller to select one pictogram.
It work fine for me (simulator and iPad, not desktop)


The next step
2. Copy the visible picto (this is a group)
3. The new picto follow the mouse at mousemove
4. Putting the new picto down on a rectangle
Do you want to have 190 groups (with 3 objects in each) inside a scroller group?
Yes. It seem that is the limit for this size of groups

Kind regards

Jean-Marc
https://alternatic.ch

jmburnod
VIP Livecode Opensource Backer
VIP Livecode Opensource Backer
Posts: 2729
Joined: Sat Dec 22, 2007 5:35 pm
Contact:

Re: manage five groups with one scroller

Post by jmburnod » Thu Apr 12, 2012 2:16 pm

Hi Klaus,

Thank for this.
I just understand i can set the propertie of the scroller without delete it :D
Right ?

Best regards

Jean-Marc
https://alternatic.ch

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

Re: manage five groups with one scroller

Post by bn » Thu Apr 12, 2012 2:29 pm

Hi Jean-Marc,
1. Using the native scroller to select one pictogram.
It work fine for me (simulator and iPad, not desktop)

The next step
2. Copy the visible picto (this is a group)
3. The new picto follow the mouse at mousemove
4. Putting the new picto down on a rectangle
OK, you will have the 190 groups in the scroller group.
Now you want to touch on of the of the picto by touching it.
Then you want the picto to be dragged to a rectangle.
And the picto will be inside the rectangle and outside of the scrolling group.

Is that right?

(your stack throws an error for "BuilListeFolPictos", what is that supposed to do?)

KInd regards

Bernd

jmburnod
VIP Livecode Opensource Backer
VIP Livecode Opensource Backer
Posts: 2729
Joined: Sat Dec 22, 2007 5:35 pm
Contact:

Re: manage five groups with one scroller

Post by jmburnod » Thu Apr 12, 2012 3:04 pm

Hi Bernd
OK, you will have the 190 groups in the scroller group.
Now you want to touch on of the of the picto by touching it.
Then you want the picto to be dragged to a rectangle.
And the picto will be inside the rectangle and outside of the scrolling group
Yes
(your stack throws an error for "BuilListeFolPictos", what is that supposed to do?)
Oh Sorry, "BuilListeFolPictos" build the collection of pictos from a list of image files

Kind regards

Jean-Marc
https://alternatic.ch

Klaus
Posts: 14235
Joined: Sat Apr 08, 2006 8:41 am
Contact:

Re: manage five groups with one scroller

Post by Klaus » Thu Apr 12, 2012 5:01 pm

Bonjour Jean-Marc,
jmburnod wrote:Hi Klaus,
Thank for this.
:D
jmburnod wrote:I just understand i can set the propertie of the scroller without delete it :D
Right ?
Yes, as far as I understand this, yes.
Don't have an iOS license, but always read the "Relase Notes" with big interest :D

The most economical property in my opinion is "visible"!
Why trash something that is just "like new"?! 8)


Best

Klaus

FireWorx
Posts: 362
Joined: Wed Sep 07, 2011 9:39 pm

Re: manage five groups with one scroller

Post by FireWorx » Thu Apr 12, 2012 5:03 pm

I get a message that says your stack is corrupt when I try and open it.
Dave

Klaus
Posts: 14235
Joined: Sat Apr 08, 2006 8:41 am
Contact:

Re: manage five groups with one scroller

Post by Klaus » Thu Apr 12, 2012 5:20 pm

Hi Dave,

I bet you are running LC 5.02, like me, and the stack is in 5.5 format,
which happens quite often here in the last time 8)

Maybe everyone should add the info about the stack format when posting!
Not all of us made the upgrade to 5.5 yet...

Spread the word! :)


Best

Klaus

jmburnod
VIP Livecode Opensource Backer
VIP Livecode Opensource Backer
Posts: 2729
Joined: Sat Dec 22, 2007 5:35 pm
Contact:

Re: manage five groups with one scroller (LC 5.5)

Post by jmburnod » Thu Apr 12, 2012 11:50 pm

Hi Klaus,
but always read the "Relase Notes" with big interest
Yes. but it is not clear for me if i can use one scroller for five groups or if each group must have one.
I tried to set the properties of an unique scroller but it doesn't still work.
Maybe everyone should add the info about the stack format when posting!
I tried the same stack with LC 5.0 but it don't work well, 5.5 seem better for it
I'm a good boy and i changed the title of the topic :D
Not all of us made the upgrade to 5.5 yet...
Yes, i upgraded this morning

Best

Jean-Marc
https://alternatic.ch

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

Re: manage five groups with one scroller (LC 5.5)

Post by bn » Sun Apr 15, 2012 8:25 pm

Hi Jean-Marc,

I give up. Could you scale down your stack and groups. Lets work on one problem at a time.
It is so many that the application browser does not even list them appropriately.

I really don't get what you are after.
Could explaing the ultimate goal of your scrolling. Please give some context.
Why would I want to scroll, what are the images doing. Why would I drag a copy of a group out of the scrolling groups. For what. I assume it is an educational game/learning tool. Do you want to compare the images?

Kind regards

Bernd

jmburnod
VIP Livecode Opensource Backer
VIP Livecode Opensource Backer
Posts: 2729
Joined: Sat Dec 22, 2007 5:35 pm
Contact:

Re: manage five groups with one scroller (LC 5.5)

Post by jmburnod » Mon Apr 16, 2012 10:45 pm

Hi Bernd,
give up. Could you scale down your stack and groups. Lets work on one problem at a time.
Ok. I clean the stack and i post it
It is so many that the application browser does not even list them appropriately.
Yes, i changed many scripts and it work now with one native scroller for ipad
Could explaing the ultimate goal of your scrolling. Please give some context.
The scroller work fine now. the option "AjustePicto" (when the scrolled stop between two Pictos) work well also
Why would I want to scroll,
To choose an image
what are the images doing
Just a copy with the good input (MouseDoubleUp or a btn "Copy" ?)
Why would I drag a copy of a group out of the scrolling groups
The user can drag a copy of this group in a "sentence space"
One click under the Picto speak its name. Unfortunately, i don't found a way to work with rrenarrator in french. For IOS i use sound files (recording with AppleScript, You're remember ?) For Lion i use the say command of Applescript
I assume it is an educational game/learning tool.
Yes. Learning and communication tool

I post soon a new stack. Thank for help one more

Kind regards

Jean-Marc
https://alternatic.ch

Post Reply