object = DFrame, Menu, Bar or BarLayer

object: show

DFrame.show method: Create the graphical representation of the DFrame object if not yet done and set it on the top of all others DFrames

Bar, BarLayer and Menu: Allow to hide or show the object

Example

var dFrame = new DFrame(parameters)
dFrame.show()

Demo

file: showBarAndButtons.html

Run the example
See the source code

Syntaxes

object.show(flag)

Parameters

flag

Boolean:
true (default): show the object
false: hide the object

Return value

no return value.

Usage

Show the object or not depending on the value of the flag.
If apply to a DFrame: Create it if not yet done.

If apply to a created DFrame with true (default) as parameter: Set the DFrame on the top of all others DFrames.
Can also apply to BarLayers but, as show a BarLayer needs to hide all others BarLayers (BarLayers are transparent), the useBarLayer method will hide all other BarLayers and is recommended.