IUP-Go Documentation 4.0

BGCOLOR

Element's background color.

Value

The RGB or RGBA components, in the format "R G B A".

Values should be between 0 and 255, separated by a blank space. For example, "255 0 128", red=255 green=0 blue=128.

Alpha is optional and assumed to be 255 if not specified. It is used only by the controls drawn with IupDraw, such as IupGauge, IupDial and the IupFlat* controls, with the driver limits listed there.

Default: the value of the DLGBGCOLOR or TXTBGCOLOR global attributes. TXTBGCOLOR is used in IupText, IupList, and IupTree (usually "255 255 255", white). In some controls, if not defined, the background of the native parent is inherited.

Hexadecimal notation in the format "#RRGGBB" is also accepted in all color attributes. For example, "255 0 128" can also be written as "#FF0080".

Affects

All controls that have visual representation, but with some restrictions.

Several controls have transparent parts that are not affected by the BGCOLOR.

See Also

FGCOLOR, DLGBGCOLOR