Shiny Language Reference

Language Reference > Panel Functions


getpanelbgcol

int getpanelbgcol();

 

 

Gets the background colour of the display panel

GETPANELBGCOL returns the background colour of the display panel. The background colour is drawn under the background image, if any. If the panel has been set to have a transparent background (using SETPANELBGTRANSP) this statement returns the colourkey colour.

 

Parameters

None

 

Return Value

The background RGB colour packed into an integer. You may perform comparisons on this value using the RGB statement to pack up an RGB value.

 

Example Code

// Get the panel bg colour
int BgCol = getpanelbgcol();