Skip to content

Latest commit

 

History

History
22 lines (14 loc) · 1.03 KB

File metadata and controls

22 lines (14 loc) · 1.03 KB

IupSetAttributeHandle

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.

Parameters/Return

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.

See Also

IupGetAttributeHandle, IupSetAttribute, IupSetAttributes, IupSetHandle