Facility Control

 View Only
  • 1.  Lock Screen

    Posted 02-10-2017 21:12
    Could someone please point me in the proper direction to add a simple lock to my dashboard screen so that buttons do not get pressed when not in use?


  • 2.  RE: Lock Screen

    Posted 02-10-2017 22:04
    You could add a blank canvas (abs component) on top of everything and the use a checkbox param to hide or reveal the abs. It wouldn't hide anything unless you give the abs a picture or color background, but you wouldn't be able to press any buttons covered by the abs on top of your buttons. Be careful to place your checkbox param outside that abs, but not beneath it.. Hope that makes sense. :-)
    #DashBoard


  • 3.  RE: Lock Screen

    Posted 02-13-2017 15:43

    Hi Ken.
    The approach mentioned by Tobias is definitely what we would recommend.

    Here is a snippet of code to demonstrate the concept:

    <abs contexttype="opengear" style="">
       <button buttontype="push" height="192" left="25" name="Lock" top="26" width="450">
          <task tasktype="ogscript">ogscript.reveal('lockout');</task>
       </button>
       <abs bottom="0" id="lockout" left="0" right="0" style="bg#0000007F;" top="0" visible="false">
          <button bottom="8" buttontype="push" height="110" name="Unlock" right="9" width="164">
             <task tasktype="ogscript">ogscript.hide('lockout');</task>
          </button>
          <label height="155" left="6" name="Panel Locked!" right="8" style="txt-align:center;size:Biggest;font:bold;" top="2"/>
       </abs>
    </abs>

    #DashBoard


  • 4.  RE: Lock Screen

    Posted 02-22-2017 21:09

    Thank you everyone, very helpful. Proud of my little lock screen.


    #DashBoard