Defines an attribute for an interface element but the string is internally duplicated.
void IupStoreAttribute(Ihandle *ih, const char *name, const char *value); [in C] iup.StoreAttribute(ih: ihandle, name: string, value: string) [in Lua] void IupStoreAttributeId(Ihandle *ih, const char *name, int id, const char *value); [in C] iup.StoreAttributeId(ih: ihandle, name: string, id: number, value: string) [in Lua]
ih: identifier of the interface element. If
NULL will set in the global environment.
name: name of the attribute.
id: used when the attribute has an additional id.
value: value of the attribute. If NULL (nil in IupLua), the attribute will be removed from the element.
The value is duplicated before it is stored in the hash table, if that happen. Otherwise behaves just like IupSetAttribute.
You can NOT use this functions for pointers that are not strings.