IupSetClassDefaultAttribute (Since 3.0)

Changes the default value of an attribute for a class. It can be any attribute, i.e. registered attributes or user custom attributes.

Parameters/Return

void IupSetClassDefaultAttribute(const char* classname, const char *name, const char *value); [in C]
iup.SetClassDefaultAttribute(classname, name, value: string) [in Lua]

classname: name of the class
name
: name of the attribute
value: new default value.

Notes

If the value is DEFAULTFONT, DLGBGCOLOR, DLGFGCOLOR, TXTBGCOLOR, TXTFGCOLOR or MENUBGCOLOR then the actual default value will be the global attribute of the same name consulted at the time the attribute is consulted.

Some attributes can NOT have a default value, so even if you set and IupGetAttribute return it, internally it will not be used. Those attributes are all non inheritable attributes, see the Attributes Guide in the Inheritance section.

If the new default value is (char*)-1, then the default value is set to be the system default if any is defined.

See Also

IupGetClassName, IupGetClassType, IupGetAllAttributes