PDA

View Full Version : how to make a LOOP INDEX that spans horizontally?



kurtlewis
April 7th, 2006, 11:55 AM
I'm setting up weather thumbnails in my layout, but need the loop to span horizontally left-to-right instead of vertical top-to-bottom. I can't see how to do this-

Rob H
April 7th, 2006, 12:25 PM
I'm not sure what you mean - normally the loopindex increments left to right then top to bottom.

Do you mean that you want a single row?

Just set the X repeat to an appropriate value but leave the Y as 1

kurtlewis
April 7th, 2006, 12:31 PM
I think so- I attached a pic of how i want it to look, as an example. The pic is not my loop index, it's just something i whipped up with buttons to show you what I mean.

I tried setting up the x-y coords and it creates the child objects below and vertical, not left and horizontal.

Rob H
April 7th, 2006, 12:38 PM
Can you send me an example CCF that shows the problem since I can't see how this can happen.

kurtlewis
April 7th, 2006, 02:04 PM
I would love to, but unfortunately due to a nasty bug going on I can't save any of my new work in NRD.

So you are saying that upon creation of a loop index it will attempt to list the child objects from left to right before going top to bottom?

Maybe the issue i'm having is related to the other errors that are causing problems with NRD.
I have another similar issue with a GAC+ loop index that I created, in which I specified 8 child objects but it will only display 6 no matter what I do. I can send you that ccf if you give me your email, it's 2.3mb zipped.

Ben S
April 7th, 2006, 02:15 PM
Kurt -
To do looping, you specify the # in the X direction and the # in the Y direction. My guess is you're increasing the # in the Y direction.

Regarding the 8 and 6 issue, the GAC object is set to request 6 items, and you've setup 8 items in the loop.

I strongly recommend looking at the GAC docs (http://www.promixis.com/php/drops/HowToSeries-GAC.pdf) that I linked to earlier, it really does have quite a bit of info, including info about what the keys mean in the lua file that creates the GAC.

kurtlewis
April 7th, 2006, 02:41 PM
Thanks Ben- My bad, I thought X was the object number that the loop should start at, not the direction, and Y was the number that the object list ended at.
So if I put 5 for X then I will have 5 horizontal objects, if I put 1 for Y I will have 1 row.


Regarding the 8 and 6 issue, the GAC object is set to request 6 items, and you've setup 8 items in the loop.
I looked through the lua file quite a few times, as I did think as well that it might be a limitation of what the GAC was calling up- But, I did not immediately notice any references to 6 items. I'll look through it again. I did read through the docs but it will take some time for all of it to sink in.

Ben S
April 7th, 2006, 02:43 PM
No problem, Kurt. The designer manual also has some good information, in particular the Visual Customization/Frames talks about the looping. You can see it by choosing "About/Help" from the menu.

kurtlewis
April 7th, 2006, 02:47 PM
Good deal- I'll check it out when I get the .27 version instaleld later today. I'm keeping my fingers crossed that the new version of NRD also takes care of my save issues and crashes with NR.