October 15, 200322 yr Hi all.Is there any way to change the colors of strings other than duplicate "MAKE_STRINGS" with SHOW/HIDE macros. I want to change the color of strings when number goes over limit value (eg.engine temperature coming to overheat). I know that I can do thisby duplicate "MAKE_STRINGS" but I want to know if I can do the same by other way.
October 16, 200322 yr I'm using the string conditional in these cases. Goes something like:Color="%('#FF5A5A' '#AA0000' (L:YourTest,bool) ?)"Sorry, didn't realize the C syntax. Maybe there is something similar there?
October 16, 200322 yr Actually there is a way in C:try pelement->fg_color=RGB(xx,yy,zz);in the callback function of the MAKE_STRING.Arne Bartels
October 16, 200322 yr Karl and Arne, Thank you so much.I'm using C only, so Arne's suggestion is very helpful.How easy this is! I understand that in MAKE_STRING macro,still put RGB colors as the default color, and in the callback put new color. How about set color back to the default color?Just assign the color as new color in the callback?I have no inconvenient with this way, but if there is a way,I want to know.Your Sincerely,Taku
October 17, 200322 yr Taku,This worked well for meif ( PANEL_LIGHTSvar.var_value.n == 1 ) { pelement->fg_color = RGB(255,255,255) ; } else { pelement->fg_color = RGB(255,128,64) ; }Colour will now toggle, based on the value of the Panel_Lights variable.Doug
Create an account or sign in to comment