Page 1 of 1

Group object limit.

Posted: Fri Dec 12, 2014 8:01 pm
by zaxos
Hello there livecode ppl, i'm having a strange issue, whenever a group reaches about 2397 items in it the scrollBar dosent work anymore, it apears but its scrollabe only for the first 10 items. i'm not sure if its the length of the group or anything else....

Re: Group object limit.

Posted: Fri Dec 12, 2014 8:18 pm
by FourthWorld
It's probably the geometric space rather than the number of objects. LiveCode groups are currently limited to a formattedWidth and formattedHeight of 36,767 pixels.

Re: Group object limit.

Posted: Fri Dec 12, 2014 10:11 pm
by dunbarx
Richard.

32,768?

Craig

Re: Group object limit.

Posted: Fri Dec 12, 2014 11:19 pm
by FourthWorld
Thanks, Craig. Distracted, frustrating day today (power outage), so serious brain misfire. You're right; I've edited my post to reflect reality. :)

Re: Group object limit.

Posted: Sat Dec 13, 2014 4:41 pm
by dunbarx
You are lucky your power outages are only on your grid. Mine are in my head.

Craig

Re: Group object limit.

Posted: Sat Dec 13, 2014 8:00 pm
by zaxos
Thank you guys, so it's the formattedHeight that limits me to 36,767 pixels, is there any way to overcome this?

Re: Group object limit.

Posted: Sat Dec 13, 2014 8:04 pm
by dunbarx
Hi.

Can you hold all your data in a custom property and load only the "page" that you need? This is not hard to manage, but write back if you need advice.

Craig

Re: Group object limit.

Posted: Sat Dec 13, 2014 8:15 pm
by FourthWorld
The DataGrid object is quite flexible and does as Craig describes, allowing an almost limitless number of records by paging in only this which can actually be displayed at any given time.

If the DataGrid isn't a good fit for your layout it would be helpful to know more about what you're looking for so we can provide useful guidance.

Re: Group object limit.

Posted: Sat Dec 13, 2014 8:49 pm
by zaxos
Thank you for your quick answers guys, well to start with take a look at the screen i attached, is this outcome possible with datagrid? i mean the group at the middle(see the scrollbar).
By the way this isn't a major problem since it occurs only when i load ALL the data inside the group, which is allot, but still i'd like to be able to load all of it.

Re: Group object limit.

Posted: Sat Dec 13, 2014 8:54 pm
by zaxos
i guess i could just split the data and add a See More button at the end of the group...

Re: Group object limit.

Posted: Sat Dec 13, 2014 10:06 pm
by zaxos
If dataGrid is capable of holding Fields and Graphics it would be a good choice, also can i make a dataGrid with invisible rows/columns?

Re: Group object limit.

Posted: Mon Dec 15, 2014 11:20 pm
by zaxos
The program in the picture is an Internet Cafe Menu software by the way. Nothing illegal.I'm about to get done with it and that custom properties advice actually helped me clean up the code allot.Still waiting for some advice with the datagrid

Re: Group object limit.

Posted: Mon Dec 15, 2014 11:38 pm
by jmburnod
Hi zaxos,
I had a similar problem with an image collection (3340 png files)
I use a group of 20 groups (one grc, one img, one fld for title) and refresh them with other filename when you clic on a btn prev/next page
Of course you can't do a swip of the group but you can go to prev/next page with an horizontal drag.
Best regards
Jean-Marc