IUP - Portable User Interface


Defines an attribute for the global environment.


void IupSetGlobal(char *a, char *v); [in C]
IupSetGlobal(attribute: string, value: string) [in IupLua3]
iup.SetGlobal(attribute: string, value: string) [in IupLua5] 

a: name of the attribute.
v: value of the attribute. If it equals NULL (nil in IupLua), the attribute will be removed.


The value stored in the attribute is not duplicated. Therefore, you can store your private attributes, such as a structure of data to be used in a callback.

When you want IUP to store the attribute's value by duplicating the string, use function IupStoreGlobal.

See Also

IupSetAttribute, IupGetGlobal, IupStoreGlobal