Facility Control

 View Only
  • 1.  Custom Widget setstyle command

    Posted 04-06-2023 09:00

    I have built a widget to monitor the transport status of a record deck.  I would like to use the ogscript.setstyle command to change the buttons color.  When I have more than one widget on the dashboard, the status button changes on every widget.  Is there a way to programmatically change the color of just the button in the one widget.  I assume I need to get the ID of the widget and specify the exact button somehow  like widget.button, but I can figure out how to do that.



    ------------------------------
    David King
    MILLS JAMES PRODUCTIONS
    ------------------------------


  • 2.  RE: Custom Widget setstyle command

    Posted 04-13-2023 07:16

    if you start the ID of the controls inside of the widget with a '.', it will be scoped to the widget itself.



    ------------------------------
    James Peltzer
    Ross Video
    ------------------------------



  • 3.  RE: Custom Widget setstyle command

    Posted 04-13-2023 08:29

    Thanks James.  That was the info i needed.   Clearly this is a gap in my knowledge.  where would i look to learn more about this?



    ------------------------------
    David King
    MILLS JAMES PRODUCTIONS
    ------------------------------