Hi,

 

  appenditem Works only after the element is mapped, i.e. it is created in the 
native system.

 

  To add items before map, just set the item number to the value. For instance:

 

list = iup.list {"Gold", "Silver", "Bronze", "None"}

list[5] = "Test"

 

Best,

Scuri

 

From: Daniel Kollmann [mailto:[email protected]] 
Sent: sexta-feira, 8 de junho de 2012 19:05
To: [email protected]
Subject: Iup 3.5 - Lua 5.1 - Trying to add element to list at runtime

 

Hello,

 

I am currently trying to add a new element to a list with little success. I saw 
that there is an attribute appenditem that does not seem to work, same if I 
directly try to use iup.SetAttribute. I can’t seem to figure out the actual Lua 
code that I need to write.

 

It would be great if someone could help me with this.

 

Dan

------------------------------------------------------------------------------
Live Security Virtual Conference
Exclusive live event will cover all the ways today's security and 
threat landscape has changed and how IT managers can respond. Discussions 
will include endpoint security, mobile security and the latest in malware 
threats. http://www.accelacomm.com/jaw/sfrnl04242012/114/50122263/
_______________________________________________
Iup-users mailing list
[email protected]
https://lists.sourceforge.net/lists/listinfo/iup-users

Reply via email to