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.

String Parameters - C

Featured Replies

From gauges.h:#define MAKE_STRING( NAME, NEXT_LIST, FAILURE, DRAW_FLAGS, ASI_FLAGS, POSITION_X, POSITION_Y, SIZE_X, SIZE_Y, NUM_CHARS, SOURCE_VAR_1, SOURCE_VAR_2, SOURCE_VAR_3, FORECOLOR, BACKCOLOR, HILITECOLOR, FONT_NAME, FONT_WEIGHT, FONT_CHARSET, FONT_SIZE, DRAW_TEXT_FLAGS, HILITE_LIST, CALLBACK)Now can anyone explain to me why there are three SOURCE_VARs and what they're for. I mean I's understand if there'd be one, but why three and how to use them?? :-hmmmThanx in advance :-)http://flightsimmers.net/airport/etti/signature_pro.jpg

If you read the SDK documentation you will find out why there are 3.SOURCE_VAR_1 Contains the token variable used to update the string. The string can contain numbers, characters, or both. If you want to set your variable values, enter MODULE_VAR_NONE.SOURCE_VAR_2 Used to look up multiple token variables to update the string. (e.g., Hours, Minutes, Seconds). Sequence them inside the callback function. SOURCE_VAR_3 Pretty much the same as SOURCE_VAR_2Using the example from in the SDK docs,MAKE_STRING( temperature_string, NULL, temperature_fail, IMAGE_USE_ERASE | IMAGE_USE_BRIGHT, 0, 28, 9, 60, 29, 3, TOTAL_AIR_TEMP, <<<< 1 DISPLAY_UNITS, <<<< 2 MODULE_VAR_NONE, <<<< 3 RGB(255,0,0), RGB(0,0,0), RGB(92,92,92), GAUGE_FONT_DEFAULT, GAUGE_WEIGHT_DEFAULT, GAUGE_CHARSET, 0, DT_CENTER | DT_VCENTER | DT_SINGLELINE, NULL, temperature_string_cb)String will be source var 1 + source var 2 (3 is set to non so isn`t used)If the TAT is 60 degrees and the DISPLAY_UNITS are degrees C the string will be "60C"You would use all 3 in a clock for example, SV1 = Hours SV2 = Mins SV3 = SecsChrishttp://thegreatptmd.tripod.com

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.