Page 1 of 1

How to organize photos within data in a text field?

Posted: Fri May 06, 2016 5:58 pm
by CElwell
Currently I am able to load all of the photos onto the page, however, they all load in the center of the app on top of one another. I want to have the images display before the data it belongs with.

For example:
[photo]
Name:
Sex:
Age:

[photo]
Name:
Sex:
Age:

This is my code currently (data loaded from xml url) and I have tried to look at rect and other properties, but I have not been able to have any luck.

Code: Select all

repeat for each line tChild in tChildren
  put revXMLChildNames( tInfo, "ArrayOfXmlNode/"&tChild&backslash, return, "adoptableSearch", true) into tAdoptable
  
  put revXMLNodeContents( tInfo, "ArrayOfXmlNode/"&tChild&"/"&tAdoptable&"/Photo") into tTest
      put url tTest into tPhoto
      if the result is empty then
         set the text of img 1 to tPhoto
      else
         beep
      end if
  
  //other data loaded here...
end repeat
Thank you!

Re: How to organize photos within data in a text field?

Posted: Fri May 13, 2016 3:56 pm
by MaxV
You should use a datagrid form, here the guide: http://lessons.livecode.com/m/datagrid/ ... -of-people