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.

Help with XML case logic

Featured Replies

  • Commercial Member

Hey guys,I'm trying to develop a multi-function display as part of an aircraft project, but I'm having issues finding the best way to implement a menu-driven system. If MS would just release an XML SDK life would be alot easier:)What I'm trying to do and have one gauge with a number of buttons along all sides which corespond different pages. So what I need is a good system for case logic to keep things tidy, and to store the current page in a variable, along with some logic to decide which "function" of the gauge to branch to based on the options available for the current page.Those of you who have seen a military MFD/DDI will know I'm trying to do. Sounds simple, but I'm tearing my hair out trying to hack up default gauges like the GPS in order to find a logical and readable system for turning on and off gauge functions.For example:Main menu (top level) Navigation Main menu Nav option 1 Nav option 2 Etc... HSI Main Menu HSI option 1 HSI option 2 Etc... Ect...My question is, what would the syntax look like to nest the various gauge functions based on which button get pushed?Should I use CASE, or MACRO(like they've been doing for the buttons in the GPS gauge)?If anyone has a code snippet that I could use as a starting point, it would be greatly appreciated!Jon

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.