Shiny Language Reference

Language Reference > Panel Functions


setpaneltranspfactor

setpaneltranspfactor(int Factor);

 

 

Sets the amount of transparency of the display panel

SETPANELTRANSPFACTOR immediately alters the display panel transparency. This setting affects the entire panel, allowing windows and the desktop underneath to show through. This statement only has a visual effect when SETPANELTRANSP is set to TRUE, although if called when SETPANELTRANSP is set to FALSE the factor will be stored and used upon the next call to either SETPANELTRANSP or GETPANELTRANSP.

 

Parameters

Factor

An integer value scaled from 0 to 255, where 0 is completely transparent and 255 is completely opaque.

 

Return Value

None

 

Example Code

// Set the panel to be 50% transparent
setpaneltransp(True);
setpaneltransp(128);