Hello there,
I've been following this lesson
http://lessons.livecode.com/m/datagrid/ ... -of-people
It uses the filename property to specify the image to use when it comes to loading the grid template with data.
I was wondering if it’s possible to use a stack image (e.g. loaded on a resource card) in a datagrid - if it is then how is the image specified?
Any help appreciated.
Thanks,
Jim
using stack images in a data grid form
Moderators: FourthWorld, heatherlaine, Klaus, kevinmiller, robinmiller
Re: using stack images in a data grid form
Hi Jim,
the easiest way is to use simple buttons (disabled etc. to make them non-functional)
and set their ICONs to the id of the desired imported image.
That's the way I do it all the time
Best
Klaus
the easiest way is to use simple buttons (disabled etc. to make them non-functional)
and set their ICONs to the id of the desired imported image.
That's the way I do it all the time

Best
Klaus
Re: using stack images in a data grid form
Thank you Klaus for this idea. I tried it and it worked nicely.
Now you qualify for a follow-up question about the same lesson
To what extent does the layout of the template affect the layout of the datagrid? I was hoping that a once the template was created that would define the layout but then slightly dismayed to read further on about a cryptic LayoutControl Message. Can the layout not be seen & adjusted visually before running the app?
Best wishes,
Jim
Now you qualify for a follow-up question about the same lesson

To what extent does the layout of the template affect the layout of the datagrid? I was hoping that a once the template was created that would define the layout but then slightly dismayed to read further on about a cryptic LayoutControl Message. Can the layout not be seen & adjusted visually before running the app?
Best wishes,
Jim
Re: using stack images in a data grid form
Hi Jim,
I never worked with the "layoutcontrol" message so far, but I think this is only important if you have a "dynamic" layout.
Means it may change its dimensions e.g. after clicking a "disclosure" triangle button to expand your initial layout.
But I may be wrong
Best
Klaus
I never worked with the "layoutcontrol" message so far, but I think this is only important if you have a "dynamic" layout.
Means it may change its dimensions e.g. after clicking a "disclosure" triangle button to expand your initial layout.
But I may be wrong

Best
Klaus
Re: using stack images in a data grid form
Klaus,
Thanks for your reply - and honesty!
Best wishes,
Jim
Thanks for your reply - and honesty!
Best wishes,
Jim