Controlling the Visibility of Graphics and Controls

Dashboard graphics and controls have a Visible property that determines whether, in Run mode, they are displayed. Users can use only visible objects to trigger events. The Visible property is available, for graphics and controls, from the Object tab in the Properties dialog box.

Example—Make a control visible

/* Makes control Visible */
var sect_name=’Dashboard’;
var ctrl_name=’TextBox1’;
ActiveDocument.Sections[sect_name].Shapes[ctrl_name].Visible = true;

Example—Make a control invisible

/* Makes control Invisible */
var sect_name=’Dashboard’;
var ctrl_name=’TextBox1’;
ActiveDocument.Sections[sect_name].Shapes[ctrl_name].Visible = false;