![]() |
|
SageTV Studio Discussion related to the SageTV Studio application produced by SageTV. Questions, issues, problems, suggestions, etc. relating to the Studio software application should be posted here. |
![]() |
|
Thread Tools | Search this Thread | Display Modes |
#1
|
|||
|
|||
Dynamic Background color in Studio
Is there a way to dynamically assign the background color of text? (If not text, some other widget?)
Example: Say I have this code in Studio: theStatus = Hallowell_football_Client_VitalScreenInfo_getStatus(vsInfo) If theStatus = "Go" then I want to assign the background color of the text to green. If it's equal to "Stop" then the color should be red. Attached is what I have so far. Thanks! Chris |
#2
|
||||
|
||||
Put a Shape or Image widget behind the text, like so:
Code:
Panel If theStatus > "Go" green Shape > "Stop" red Shape theDataCells Untitled Text widget Code:
Panel If theStatus > "Go" "greenimage.png" Image > "Stop" "redimage.png" Image theDataCells Untitled Text widget
__________________
-- Greg |
#3
|
|||
|
|||
You could also just put a if equation in the background color of the panel theme for that text.
Code:
=If(theStatus=="Go",greencolor,redcolor) |
#4
|
|||
|
|||
Thanks guys. I got both ways to work.
|
![]() |
Currently Active Users Viewing This Thread: 1 (0 members and 1 guests) | |
|
|
![]() |
||||
Thread | Thread Starter | Forum | Replies | Last Post |
Customization request: Dynamic menus without dynamic menus ;-) | owilsky | SageTV Customizations | 16 | 07-07-2009 03:33 PM |
OSD Background Color | Karen0302 | SageTV Software | 1 | 06-05-2006 03:10 PM |
Changing the Video Background Color | mike1961 | SageTV Software | 4 | 04-20-2006 09:34 PM |
any chances of altering the graphics in sage without studio? studio users please read | reboot_this | SageTV Customizations | 1 | 12-03-2004 04:03 AM |
Video Background Color | mightyt | SageTV Customizations | 4 | 08-14-2004 09:49 PM |