Group object limit.

Anything beyond the basics in using the LiveCode language. Share your handlers, functions and magic here.

Moderators: FourthWorld, heatherlaine, Klaus, kevinmiller, robinmiller

Post Reply
zaxos
Posts: 222
Joined: Thu May 23, 2013 11:15 pm

Group object limit.

Post by zaxos » Fri Dec 12, 2014 8:01 pm

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....
Knowledge is meant to be shared.

FourthWorld
VIP Livecode Opensource Backer
VIP Livecode Opensource Backer
Posts: 10058
Joined: Sat Apr 08, 2006 7:05 am
Contact:

Re: Group object limit.

Post by FourthWorld » Fri Dec 12, 2014 8:18 pm

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.
Richard Gaskin
LiveCode development, training, and consulting services: Fourth World Systems
LiveCode Group on Facebook
LiveCode Group on LinkedIn

dunbarx
VIP Livecode Opensource Backer
VIP Livecode Opensource Backer
Posts: 10354
Joined: Wed May 06, 2009 2:28 pm

Re: Group object limit.

Post by dunbarx » Fri Dec 12, 2014 10:11 pm

Richard.

32,768?

Craig

FourthWorld
VIP Livecode Opensource Backer
VIP Livecode Opensource Backer
Posts: 10058
Joined: Sat Apr 08, 2006 7:05 am
Contact:

Re: Group object limit.

Post by FourthWorld » Fri Dec 12, 2014 11:19 pm

Thanks, Craig. Distracted, frustrating day today (power outage), so serious brain misfire. You're right; I've edited my post to reflect reality. :)
Richard Gaskin
LiveCode development, training, and consulting services: Fourth World Systems
LiveCode Group on Facebook
LiveCode Group on LinkedIn

dunbarx
VIP Livecode Opensource Backer
VIP Livecode Opensource Backer
Posts: 10354
Joined: Wed May 06, 2009 2:28 pm

Re: Group object limit.

Post by dunbarx » Sat Dec 13, 2014 4:41 pm

You are lucky your power outages are only on your grid. Mine are in my head.

Craig

zaxos
Posts: 222
Joined: Thu May 23, 2013 11:15 pm

Re: Group object limit.

Post by zaxos » Sat Dec 13, 2014 8:00 pm

Thank you guys, so it's the formattedHeight that limits me to 36,767 pixels, is there any way to overcome this?
Knowledge is meant to be shared.

dunbarx
VIP Livecode Opensource Backer
VIP Livecode Opensource Backer
Posts: 10354
Joined: Wed May 06, 2009 2:28 pm

Re: Group object limit.

Post by dunbarx » Sat Dec 13, 2014 8:04 pm

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

FourthWorld
VIP Livecode Opensource Backer
VIP Livecode Opensource Backer
Posts: 10058
Joined: Sat Apr 08, 2006 7:05 am
Contact:

Re: Group object limit.

Post by FourthWorld » Sat Dec 13, 2014 8:15 pm

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.
Richard Gaskin
LiveCode development, training, and consulting services: Fourth World Systems
LiveCode Group on Facebook
LiveCode Group on LinkedIn

zaxos
Posts: 222
Joined: Thu May 23, 2013 11:15 pm

Re: Group object limit.

Post by zaxos » Sat Dec 13, 2014 8:49 pm

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.
Attachments
Screen-compressed.jpg
Screenshot
Knowledge is meant to be shared.

zaxos
Posts: 222
Joined: Thu May 23, 2013 11:15 pm

Re: Group object limit.

Post by zaxos » Sat Dec 13, 2014 8:54 pm

i guess i could just split the data and add a See More button at the end of the group...
Knowledge is meant to be shared.

zaxos
Posts: 222
Joined: Thu May 23, 2013 11:15 pm

Re: Group object limit.

Post by zaxos » Sat Dec 13, 2014 10:06 pm

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?
Knowledge is meant to be shared.

zaxos
Posts: 222
Joined: Thu May 23, 2013 11:15 pm

Re: Group object limit.

Post by zaxos » Mon Dec 15, 2014 11:20 pm

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
Knowledge is meant to be shared.

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

Re: Group object limit.

Post by jmburnod » Mon Dec 15, 2014 11:38 pm

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
https://alternatic.ch

Post Reply