toBottom

Displays the object below all others in the same container. Object display is layered. If objects overlap, higher layers are drawn over lower layers.

Syntax

ogscript.toBottom (ID);

Parameters

Parameter

Type

Required

Description

ID

String

Yes

ID object to be sent to the bottom

Returns

N/A


 

Example

This example includes two labels occupying the same position. LabelOne is defined second in the code, so it appears on top and is therefore visible. Button One runs a task that uses ogscript.toBottom to send Label One to the bottom of the stack. This makes Label Two visible. Button Two sends Label Two to the bottom.

<abs>

<labelheight="317" id="labelTwo" left="100" name="Label Two" style="size:Biggest;bg#D92648;txt-align:center;" top="100" width="350"/>

<labelheight="317" id="labelOne" left="100" name="Label One" style="size:Biggest;bg#selectbg;txt-align:center;" top="100" width="350"/>

<buttonbuttontype="push" height="40" id="oneBottom" left="150" name="Button One" style="bg#selectbg;txt-align:center;" top="450" width="100">

<task tasktype="ogscript">ogscript.toBottom('labelOne');

</task>

</button>

 

<buttonbuttontype="push" height="40" id="twoBottomn" left="300" name="Button Two" style="bg#D92648;txt-align:center;" top="450" width="100">

<task tasktype="ogscript">ogscript.toBottom('labelTwo');

</task>

</button>

</abs>