firemonkey add item to HorzScrollBox on the fly

  

i have a Horizontal Scroll Box item on my form.after run the program i will get a json string that include the list of items that must be in Horizontal Scroll Box .and i must add them dynamically.

for example i have this :

after run the program in the ? area i must a a new image.

i found the function :
HorzScrollBox1.AddObject(); but a argument is required for this

i have two question:

1)how can i add the new object to this?

2)can i clone an existing image and add it at the end of the list?

Comments are closed.