Facility Control

 View Only
  • 1.  Disable drawer animation

    Posted 11-12-2020 10:42

    Hey! Is it possible to turn off the drawer tab unfolding animation?

    The animation is not smooth in my opinion

    preview https://youtu.be/LtvzWbHHuvU

     



  • 2.  RE: Disable drawer animation

    Posted 11-12-2020 20:01

    There is no way to turn off the animation on drawers.   I watched the video, and they appear to be behaving as designed.   They slow down as they reach their maximum size.  I'm sorry you don't feel they are smooth.

    If you don't want animation, you could use canvases over top of your panel instead of drawers.    Those canvases would have the attribute of visible="false", meaning they are hidden.   When you click on the button, you reveal the canvas that you want.

    Here is an example.   I only implemented the first button, but the other ones would be very similar.

    <abs contexttype="opengear" id="_top" keepalive="false" style="">
    <simplegrid cols="4" height="60" left="10" right="10" top="0">
    <button buttontype="push" name="menu1">
    <task tasktype="ogscript">/*! block id=1005,1004,1007,1008,1003,1006 !*/
    if (ogscript.getString("menu1Visible") == "true")
    {
    ogscript.hide("menu1");
    ogscript.putString("menu1Visible", "false");
    } else {
    ogscript.reveal("menu1");
    ogscript.putString("menu1Visible", "true");
    }
    /*!!
    &lt;block id="1005" type="if" x="283" y="10" w="268" INPUT1="ID:1004" OPERATION="equals" INPUT2="true" TRUE="ID:1007" FALSE="ID:1003" IGNORE="" /&gt;
    &lt;block id="1004" type="ogscript_getstring" x="10" y="10" w="243" KEY="menu1Visible" /&gt;
    &lt;block id="1007" type="ogscript_hide" x="854" y="60" w="243" ID="menu1" next="ID:1008" /&gt;
    &lt;block id="1008" type="ogscript_setstring" x="854" y="154" w="243" KEY="menu1Visible" STRING="false" /&gt;
    &lt;block id="1003" type="ogscript_reveal" x="581" y="100" w="243" ID="menu1" next="ID:1006" /&gt;
    &lt;block id="1006" type="ogscript_setstring" x="581" y="250" w="243" KEY="menu1Visible" STRING="true" /&gt;
    !!*/
    /*!!&lt;checksum&gt;f44f3f2e6dfe241b4237682fe3a2f204&lt;/checksum&gt;!!*/</task>
    </button>
    <button buttontype="push" name="menu2"/>
    <button buttontype="push" name="menu3"/>
    <button buttontype="push" name="menu4"/>
    </simplegrid>
    <abs bottom="150" id="menu1" left="20" right="20" style="bg#darkdivider;" top="80" visible="false">
    <label bottom="10" left="10" name="MENU 1" right="10" style="txt-align:center;size:Bigger;" top="10"/>
    </abs>
    </abs>


    #DashBoard