For your second question as to how to change the background color of an element, this can be done with the "ogscript.setStyle" function.
Example below:
<abs contexttype="opengear" gridsize="20" id="_top">
<button buttontype="push" height="80" left="100" name="Click me" top="100" width="200">
<task tasktype="ogscript">ogscript.setStyle('text1', 'bg#FF00FF');</task>
</button>
<label height="80" id="text1" left="360" name="Changes this" style="txt-align:center;bg#181818;bdr#7A7A7A;bdr:thick;font:bold;size:Bigger;" top="100" width="300"/>
</abs>#DashBoard