Can you display image in list field

Got a LiveCode personal license? Are you a beginner, hobbyist or educator that's new to LiveCode? This forum is the place to go for help getting started. Welcome!

Moderators: FourthWorld, heatherlaine, Klaus, kevinmiller

Post Reply
user#606
Posts: 217
Joined: Sun Jan 27, 2008 12:25 pm
Contact:

Can you display image in list field

Post by user#606 » Sun Mar 05, 2017 4:04 pm

I have looked at the Datagrid thing and it seems to be unbelievably complicated to display data. I am familiar with the List field object and if it could be made to display a thumbnail image, like a book on Amazon, then that would be ideal.
Can it be done?

Klaus
Posts: 14198
Joined: Sat Apr 08, 2006 8:41 am
Contact:

Re: Can you display image in list field

Post by Klaus » Sun Mar 05, 2017 4:13 pm

Hi user#606,

yes, look up "imagesource" in the dictionary!
Basically you can "replace" any or all characters in a field with an image this way.


Best

Klaus

user#606
Posts: 217
Joined: Sun Jan 27, 2008 12:25 pm
Contact:

Re: Can you display image in list field

Post by user#606 » Sun Mar 05, 2017 6:39 pm

Thank you Klaus.
I got it working, but the remaining cells are to contain multi line text and the Don't wrap property cannot be false, so I cannot format the text to be anything other than a single long line.
I can work things differently now I have to.

Klaus
Posts: 14198
Joined: Sat Apr 08, 2006 8:41 am
Contact:

Re: Can you display image in list field

Post by Klaus » Sun Mar 05, 2017 11:26 pm

Hi user#606,
user#606 wrote:I got it working, but the remaining cells are to contain multi line text and the Don't wrap property cannot be false, so I cannot format the text to be anything other than a single long line./quote]
yep, that is how "list fields" work!
user#606 wrote:I can work things differently now I have to.
Yes, I saw in another thread that you are using groups now.
Another way is to use a Datagrid of type FORM, but these are quite complex.


Best

Klaus

Post Reply