IupSetGlobal
Defines an attribute for the global environment. If the driver process the attribute then it will not be stored internally.
Parameters/Return
void IupSetGlobal(const char *name, 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.
Notes
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.