Sets an attribute in the global environment. If the driver process the attribute then it will not be stored internally.
void IupSetGlobal(const char *name, const char *value); [in C] iup.SetGlobal(name: string, value: string) [in Lua]
name: name of the attribute.
value: 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.
IupSetAttribute can also be used to set global attributes, just set the element to NULL.
IupSetAttribute, IupGetGlobal, IupStoreGlobal