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.

gau c programming issue push code?

Featured Replies

After working on some other areas of gau coding, I thought it would be cool to get bills (very much appreciated push code .) working. Code:BOOL FSAPI some_icon_cb( PPIXPOINT relative_point, FLAGS32 mouse_flags) { if ( mouse_flags == MOUSE_LEFTSINGLE ) { some_icon= 1 ; } else { some_icon= 0 ; } return FALSE; } MOUSE_BEGIN(gauge_mouse_rect,0,0,0) MOUSE_CHILD_FUNCT(160,33,41,78,CURSOR_HAND,MOUSE_LEFTSINGLE,some_icon_cb ) MOUSE_END This to my knowledge makes it disappear when clicked. I set it up so the make icon code links to this 8 lines down, 2 lines over, And in my callback I imputed a hide and show code Code: case PANEL_SERVICE_PRE_UPDATE: if (some_icon == 0) { HIDE_LISTELEMENT( pelement , pos_element ) add_imagedata_to_listelement( pelement , pos_element , IMAGE_HIDDEN ) } else if (some_icon == 1) { SHOW_LISTELEMENT( pelement , pos_element ) remove_imagedata_from_listelement( pelement , pos_element , IMAGE_HIDDEN ) } break; When i try exporting it, the compiler gives me lots of errors and fails ? any ideas?

Wrong pelement/pos_element in the gauges callback? Try pgauges->elements_list[0] instead pelement. It could be even possible to do that directly from the mouse callback, since the pgauge pointer can be retrieved from the mouse args by a certain mouse macro (PGAUGE_FROM_MOUSE_ARGS or so).

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.