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.

UI BUTTONS

Featured Replies

Hi Fly!SimFriends,Is there someone here, who can tell me how to use buttons in a UI window ?There is no API feature like 'APIGetUIButtonState'. The only thing I found was 'DLLEventNotice' but I couldn't made it work...Thanks for the help,Laurent

Hi Laurent,I was having the same sort of problem. The window gets created fine. You can do things to it (i.e., APISetUILabelText(), APIAddUIPopupItem(), etc., all work fine). Yet you never get callbacks to DLLEventNotice() for button presses and the like. It turns out that Fly! II has some interesting behaviors. For instance, if you call APICreateWindow2() passing an uninitialized SDLLObject pointer as the third parameter, Fly! II will happily create the window for you and consume all of that window's events. What you need to do is call APICreateDLLObject() just prior to calling APICreateWindow2(), as in...SDLLObject *notify = APICreateDLLObject();notify->dllObject = 0; // or a pointer to some useful structure.APICreateWindow2( '~tcA', "SimpleButton.win", notify );Just so long as notify points to a valid Fly! II DLLObject structure, you will get callbacks to DLLEventNotify().Hope this helps...Cheers, Tony

Thanks Tony,I will try your solution...If I can get something I will send an example code...CheerLaurent

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.