Instead of using IupSetHandle and IupSetAttribute with a new creative name, this function automatically creates a non conflict name and associates the name with the attribute.
It is very useful for associating images and menus.
void IupSetAttributeHandle(Ihandle *ih, const char *name, Ihandle *ih_named);
void IupSetAttributeHandleId(Ihandle *ih, const char *name, int id, Ihandle *ih_named);
void IupSetAttributeHandleId2(Ihandle *ih, const char *name, int lin, int col, Ihandle *ih_named);
ih: identifier of the interface element.
name: name of the attribute.
id, lin, col: used when the attribute has additional ids.
ih_named: element to associate using a name
The function will not check for inheritance since all the attributes that associate handles are not inheritable.
IupGetAttributeHandle, IupSetAttribute, IupSetAttributes, IupSetHandle