gui.setComponentBackgroundColor

Fils the background of a component with an RGB color.

Prototype

  1. bOk = gui.setComponentBackgroundColor ( hComponent, nRed, nGreen, nBlue )

Parameters

hComponent - valid GUI component handle
nRed - color component number 0..255
nGreen - color component number 0..255
nBlue - color component number 0..255


Return values

bOk - true if successful


Sample

  1. gui.setComponentBackgroundColor ( hPlatformButton, 44, 44, 44 )
  2. gui.setComponentBorderStyle ( hPlatformButton, 0x0400, false, false, false, true )

Available since ShiVa 2.0