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.

2 MAKE_ICONs

Featured Replies

I'm tryig to use two different MAKE_ICON functions in the same file. I'm making a vor gauge so I have two sets of icons:1-BMP_V1_NO_SIGNAL - 0x0590 BMP_V1_TO_FLAG - 0x0591 BMP_V1_FROM_FLAG - 0x05922-BMP_V1_NO_GS - 0x0600 BMP_V1_GS - 0x0601I can get each set of these to work separately, but when i combine them FS won't even start. Has anyone else tried to use 2 MAKE_ICONS before?MAKE_ICON( flags_gs_vor1_icon, BMP_V1_NO_GS, NULL, NULL, IMAGE_USE_ERASE | IMAGE_USE_TRANSPARENCY, 0, 189, 131, MODULE_VAR_NONE, flag_gs_v1_cb, ICON_SWITCH_TYPE_STEP_TO, 2, 0, 0 ) PELEMENT_HEADER flags_gs_vor1_icon_list[] ={ (PELEMENT_HEADER)&flags_gs_vor1_icon, NULL};MAKE_ICON( flags_vor1_icon, BMP_V1_NO_SIGNAL, NULL, &flags_gs_vor1_icon_list, IMAGE_USE_ERASE | IMAGE_USE_TRANSPARENCY, 0, 137, 206, MODULE_VAR_NONE, flag_vor1_cb, ICON_SWITCH_TYPE_STEP_TO, 3, 0, 0 ) PELEMENT_HEADER flags_vor1_icon_list[] ={ (PELEMENT_HEADER)&flags_vor1_icon, NULL};Thanks for any help.

You have your pointer to the next element in the wrong place.it should look like this:....flags_vor1_icon,BMP_V1_NO_SIGNAL,&flags_gs_vor1_icon_list,:-waveNULL,IMAGE_USE_ERASE | IMAGE_USE_TRANSPARENCY,......before NULL not after itRegardsJim

I spent all day yesterday trying to figure that out.Jim looks at it for 30 seconds and sees the problem.That's what I love about programming.Thanks Jim

In addition, you don't need the cast (which is old style and deprecated anyway).Here's a good template for you with comments.[PRE]#pragma region MAKE_ICONMAKE_ICON( govSwitch_icon, // Name BMP_SWITCH_GOVERNOR_CENTER, // Res_ID NULL, // Next list GovSwitch_fail, // Failure IMAGE_USE_TRANSPARENCY | IMAGE_USE_ERASE, 0, // ASI Flags 0, 0, // panel ROTOR_GOV_SWITCH_POS, GovSwitch_icb, // Sourc_var, callback ICON_SWITCH_TYPE_SET_CUR_ICON, // Switch type 3, // Number of icons 0, // Scale: 0-16384 => 0-100% 0 // Offset: icon = offset-(value/scale))PELEMENT_HEADER govSwitch_next[] = { &govSwitch_icon.header, NULL };#pragma endregion /*GOVERNOR*/[/PRE]Of course, in your case the next element in the first macro would not be NULL.

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.