Progressbar.bgcolor read/write property


Get or set the Progressbar background color. A nil value means that the Progressbar background color is the default one.

  • The color is represented by a number, an RGB value (one byte per primary color).
  • A RGB color can be represented as an hexadecimal number : 0xRRGGBB , RR meaning a 8bit hexadecimal red value, and so on.
  • For this property to have effect, the Progressbar.themed property should have been must have been previously set to false

Example

local ui = require "ui" -- create a simple Window local win = ui.Window("Progressbar.bgcolor sample") -- create a themed Progessbar local pb = ui.Progressbar(win) pb.themed = false pb:center() -- Changes default Progressbar colors pb.bgcolor = 0x005080 pb.fgcolor = 0xF0A030 pb.position = 50 win:show() -- update user interface repeat ui.update() until not win.visible