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.

Auto-zooming View in XML

Featured Replies

Is it possible to create an automatic gauge to zoom the view out one notch (to 75%) whenever the zoom reset key is hit? I have been unable to creat such a gauge to date utilizing my vast XML knowledge and background. (well, maybe not so vast, but I can spell XML 2 out of 3 times! *grin?*)

Hi,Not tested, but you could try the A:Var "ZOOM_FACTOR" using the K events "ZOOM_MINUS" and "ZOOM_PLUS", "ZOOM_IN_FINE" and "ZOOM_OUT_FINE" or "ZOOM_IN" and "ZOOM_OUT"Say:Zoomfactor > (what you want) if{ Zoom out }Zoomfactor < (what you want) if{ Zoom in }or something like that.Hope it helps,Jan"Beatus Ille Procul Negotiis"

Jan

 

 

 

"Beatus ille qui procul negotiis..."

Hi Jan,I was puzzled by the same question.The problem is, that to my knowledge there's no (XML) variable that specifies the current zoom factor.Hence your solution doesn't work :-)Cheers, Rob

Rob,Possible, but i found in the TokenvarSDK:ZOOM_FACTOR N Specifies zoom value of current window in real units.So probably:(A:ZOOM_FACTOR,number)Didn't try though,Jan"Beatus Ille Procul Negotiis"

Jan

 

 

 

"Beatus ille qui procul negotiis..."

  • Author

There is the zoom 1x variable to test for. However, I don't want to lock the zoom to my preference. I'd like to somehow be able to catch the zoom reset event and only then tack on a zoom out command.

I see now,What variable do you use?For curiousity i tried A:Zoom factor,number and percent.As Rob stated: it doesn't give any value.Jan"Beatus Ille Procul Negotiis"

Jan

 

 

 

"Beatus ille qui procul negotiis..."

  • Author

A combination of ZOOM_FACTOR N and KEY_ZOOM_1X and KEY_ZOOM_OUT should get me to where I want to be zoom-wise. The sticky wicket is that I want to retain the ability to zoom in and out as wanted, but to trick FS9 into making a zoom of 75% the default for a zoom/view reset.

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.