IupSetfAttribute

Defines an attribute for an interface element.

Parameters/Return

void IupSetfAttribute(Ihandle *ih, const char *name, const char *format, ...);  [in C]
void IupSetfAttributeId(Ihandle *ih, const char *name, int id, const char *format, ...);  [in C]
void IupSetfAttributeId2(Ihandle* ih, const char* name, int lin, int col, const char* format, ...);  [in C]
[There is no equivalent in Lua] 

ih: identifier of the interface element.
name: name of the attribute.
id, lin, col: used when the attribute has additional ids.
format: format that describes the attribute. It follows the same standard as the sprintf function in C .
...: values of the attribute.

Notes

This function is very useful because we usually have integer values and want to pass them to IUP attributes, but this is done by means of a string.

Internally will call IupStoreAttribute.

See Also

IupGetAttribute, IupSetAttribute, IupSetAttributes, IupGetAttributes, IupStoreAttribute