IupSetfAttribute

IUP - Portable User Interface

IupSetfAttribute

Defines an attribute for an interface element.

Parameters/Return

void IupSetfAttribute(Ihandle *ih, char *name, char *format, ...); [in C]
[There is no equivalent in Lua] 

ih: identifier of the interface element.
name: name of the attribute.
format: format that describes the attribute. It follows the same standard as the printf 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. This way, we can commonly use sprintf to compose that string.

See Also

IupGetAttribute, IupSetAttribute, IupSetAttributes, IupGetAttributes, IupStoreAttribute