Max Group Height?

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

Moderators: FourthWorld, heatherlaine, Klaus, kevinmiller, robinmiller

Post Reply
CenturyMan1979
Posts: 86
Joined: Tue May 15, 2012 5:56 pm

Max Group Height?

Post by CenturyMan1979 » Thu Mar 20, 2014 8:07 pm

Hey All,

Is there a max height for the content of a group? I have a group that I use as a scrolling list that contains thumbnail groups that are about 75 pixels high. I am now working on making a larger thumbnail version where each thumbnail group is 235 pixels high. Now when I load the thumbnails in it seems somewhere between 32,883 - 33,118 the program is jumping back to the top of the container group and placing the rest of the thumbnail groups there by pushing the other thumbnails down.

If anyone knows a solution or a work around for this issue I would love to know.

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

Re: Max Group Height?

Post by FourthWorld » Thu Mar 20, 2014 8:18 pm

I believe the current maximum size for all objects is 32767. For larger group contents you can page the data display, virtualize it as the DataGrid had done, or just use the DataGrid itself if appropriate.
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: Max Group Height?

Post by dunbarx » Thu Mar 20, 2014 8:22 pm

Hi.

Not sure I fully understand. How do you add the new objects to the scrolling group? If you copy them to the group, they locate themselves based on their original position in relation to that group, expanding the group extent to accommodate if they were outside that extent, or simply placing themselves in situ if they were inside.

Are you saying that the height of the group is changed to 33,000 after you "load" these new thumbnails? Can you provide an example stack?

Craig Newman

CenturyMan1979
Posts: 86
Joined: Tue May 15, 2012 5:56 pm

Re: Max Group Height?

Post by CenturyMan1979 » Thu Mar 20, 2014 9:06 pm

dunbarx wrote:Hi.

Not sure I fully understand. How do you add the new objects to the scrolling group? If you copy them to the group, they locate themselves based on their original position in relation to that group, expanding the group extent to accommodate if they were outside that extent, or simply placing themselves in situ if they were inside.

Are you saying that the height of the group is changed to 33,000 after you "load" these new thumbnails? Can you provide an example stack?

Craig Newman
In my application I have a group that is 325 x 440 pixels (lets call it "thumbnail_list"). Then I have a thumbnail component on a substack called "_preview". Then when I am running code to load thumbnails during run time I copy the thumbnail component into the "thumbnail_list" and position the top of it inside of the "thumbnail_list" group. I am attaching a screen shot of the component in the app, hopefully that will help.

I am loading in a couple hundred thumbnails which was not an issue before since my smaller thumbnail component was only 75 pixels high and I was not getting close to hitting this limit. So if someone knows how I can set this up to have a scrollbar still without worrying about a limit I am all ears.
Attachments
Screen-Shot-2014-03-20-at-2.58.28-PM.jpg

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

Re: Max Group Height?

Post by FourthWorld » Thu Mar 20, 2014 9:15 pm

Since each of your cells are similar, a DataGrid seems a good fit.
Richard Gaskin
LiveCode development, training, and consulting services: Fourth World Systems
LiveCode Group on Facebook
LiveCode Group on LinkedIn

CenturyMan1979
Posts: 86
Joined: Tue May 15, 2012 5:56 pm

Re: Max Group Height?

Post by CenturyMan1979 » Thu Mar 20, 2014 9:49 pm

FourthWorld wrote:Since each of your cells are similar, a DataGrid seems a good fit.
Is there a way to change the data grid template during runtime as I want to be able to swap between a small thumbnail or a larger one (which was shown in the attached image).

CenturyMan1979
Posts: 86
Joined: Tue May 15, 2012 5:56 pm

Re: Max Group Height?

Post by CenturyMan1979 » Fri Mar 21, 2014 1:41 am

Never mind found dgProps["row template"] that I can set it with.

Post Reply