Skip to content
View in the app

A better way to browse. Learn more.

The AVSIM Community

A full-screen app on your home screen with push notifications, badges and more.

To install this app on iOS and iPadOS
  1. Tap the Share icon in Safari
  2. Scroll the menu and tap Add to Home Screen.
  3. Tap Add in the top-right corner.
To install this app on Android
  1. Tap the 3-dot menu (⋮) in the top-right corner of the browser.
  2. Tap Add to Home screen or Install app.
  3. Confirm by tapping Install.

How to change colors of "STRINGS"?

Featured Replies

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.

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?

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

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

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

Great!Thank you Doug for answer my questions.

Create an account or sign in to comment

Account

Navigation

Search

Search

Configure browser push notifications

Chrome (Android)
  1. Tap the lock icon next to the address bar.
  2. Tap Permissions → Notifications.
  3. Adjust your preference.
Chrome (Desktop)
  1. Click the padlock icon in the address bar.
  2. Select Site settings.
  3. Find Notifications and adjust your preference.