Original Message:
Sent: 04-14-2023 18:40
From: James
Subject: Change constraint button colors
One more try - the original example also was still referencing the toggle button defined style and this was overriding the custom colors. When I remove the style="style:toggleButton" attribute, it works for me.
------------------------------
James Peltzer
Ross Video
Original Message:
Sent: 04-14-2023 17:26
From: Chris
Subject: Change constraint button colors
@James Peltzer It is still not changing the button color (or any attributes for that matter)
------------------------------
Chris Schaaf
Original Message:
Sent: 04-14-2023 16:55
From: James
Subject: Change constraint button colors
Hi Chris
Sorry about that - I did the example quickly and without having access to a Carbonite to verify against. In my haste, I missed a semicolon between the 2 style attributes. This is what the <param/> should look like (I have also updated the example above to correct the issue):
<param constrainttype="INT_CHOICE" expand="true" height="60" mid="48252" oid="0xF97" precision="0" width="101"> <constraint key="1010">GLD CLN<f:bg#0000FF;t:bg#FF0000></constraint> <constraint key="1011">SLR CLN<f:bg#00FF00;t:bg#FFFF00></constraint> <constraint key="1018">CG1</constraint> <constraint key="1020">CG2</constraint> <constraint key="1022">CLIPS</constraint> <constraint key="0">BK</constraint> <constraint key="11000">PGM</constraint> <constraint key="11001">PRV</constraint> <constraint key="11100">ME 1</constraint> <constraint key="11101">ME1PV</constraint> <constraint key="11200">ME 2</constraint> <constraint key="11201">ME2PV</constraint> <constraint key="25000">MinME1</constraint> <constraint key="25100">MinME2</constraint> <constraint key="25200">MinME3</constraint> <constraint key="25300">MinME4</constraint> </param>
------------------------------
James Peltzer
Ross Video
Original Message:
Sent: 04-13-2023 14:03
From: Chris
Subject: Change constraint button colors
@James Peltzer I added the style data as you had above and it didn't do anything. It didn't case errors, but it didn't change the color either. Am I possibly missing something?
------------------------------
Chris Schaaf
Original Message:
Sent: 04-13-2023 07:26
From: James
Subject: Change constraint button colors
Hi Chris
Your easiest path is to embed the color information into each entry. You can do this by adding style data at the end of the text inside of "<"...">".
<abs name="MiniME1" virtualheight="164" virtualwidth="928"> <simplegrid contexttype="opengear" height="138" left="15" objectid="Carbonite 00:0F:9B:04:08:29<br>Slot 0<br>Carbonite" objecttype="Carbonite" rows="1" top="14" width="903"> <simplegrid baseurl="http://10.4.10.103/tmp/busestab.xml" cols="12" contexttype="opengear" ipaddress="10.4.10.103:5253" objectid="Carbonite 00:0F:9B:04:08:29<br>Slot 0<br>Carbonite" objecttype="Carbonite" rows="0" subscriptions="false"> <param constrainttype="INT_CHOICE" expand="true" height="60" mid="48252" oid="0xF97" precision="0" style="style:toggleButton;" width="101"> <constraint key="1010">GLD CLN<f:bg#0000FFt:bg#FF0000></constraint> <constraint key="1011">SLR CLN<f:bg#00FF00t:bg#FFFF00></constraint> <constraint key="1018">CG1</constraint> <constraint key="1020">CG2</constraint> <constraint key="1022">CLIPS</constraint> <constraint key="0">BK</constraint> <constraint key="11000">PGM</constraint> <constraint key="11001">PRV</constraint> <constraint key="11100">ME 1</constraint> <constraint key="11101">ME1PV</constraint> <constraint key="11200">ME 2</constraint> <constraint key="11201">ME2PV</constraint> <constraint key="25000">MinME1</constraint> <constraint key="25100">MinME2</constraint> <constraint key="25200">MinME3</constraint> <constraint key="25300">MinME4</constraint> </param> </simplegrid> </simplegrid> </abs>
------------------------------
James Peltzer
Ross Video
Original Message:
Sent: 04-06-2023 13:56
From: Chris
Subject: Change constraint button colors
I've got a panel I've built out with buttons copied over from the live assist ME busses of a carbonite. The buttons present as parameter constraints. I'm looking for a way to customize the color of the buttons, but can't exactly figure it out. I'm looking to change colors on individual buttons, not the entire set of buttons. Current code below.
<abs name="MiniME1" virtualheight="164" virtualwidth="928"> <simplegrid contexttype="opengear" height="138" left="15" objectid="Carbonite 00:0F:9B:04:08:29<br>Slot 0<br>Carbonite" objecttype="Carbonite" rows="1" top="14" width="903"> <simplegrid baseurl="http://10.4.10.103/tmp/busestab.xml" cols="12" contexttype="opengear" ipaddress="10.4.10.103:5253" objectid="Carbonite 00:0F:9B:04:08:29<br>Slot 0<br>Carbonite" objecttype="Carbonite" rows="0" subscriptions="false"> <param constrainttype="INT_CHOICE" expand="true" height="60" mid="48252" oid="0xF97" precision="0" style="style:toggleButton;" width="101"> <constraint key="1010">GLD CLN</constraint> <constraint key="1011">SLR CLN</constraint> <constraint key="1018">CG1</constraint> <constraint key="1020">CG2</constraint> <constraint key="1022">CLIPS</constraint> <constraint key="0">BK</constraint> <constraint key="11000">PGM</constraint> <constraint key="11001">PRV</constraint> <constraint key="11100">ME 1</constraint> <constraint key="11101">ME1PV</constraint> <constraint key="11200">ME 2</constraint> <constraint key="11201">ME2PV</constraint> <constraint key="25000">MinME1</constraint> <constraint key="25100">MinME2</constraint> <constraint key="25200">MinME3</constraint> <constraint key="25300">MinME4</constraint> </param> </simplegrid> </simplegrid> </abs>
------------------------------
Chris Schaaf
------------------------------