Skip to content
View in the app

A better way to browse. Learn more.

Learn more

XML setting for zoom

Featured Replies

Hi,Is there an XML command to set the zoom level of the forward view to a specifric value? I can only see the following in the FS2004 controls.dll list I have:ZOOM_1XZOOM_INZOOM_IN_FINEZOOM_MINUSZOOM_OUTZOOM_OUT_FINEZOOM_PLUSWhat I would like to do is write a small gauge that changes the zoom as I change altitude:> read altitude and write required zoom value to a variable> If altitude below a certain cutoff and zoom not default, set the default low altitude zoom> If altitude above a certain cutoff and zoom not default, set the default high altitude zoom> If altitude between the cutoff values and zoom not same as stored variable, set zoom to the stored variable...Thanks,Geoff

  • Moderator

No. The list you have are all that's available...However, you could program a number of sequential ZOOM_IN or ZOOM_OUT events to a single operation, but you'd have to experiment to determine how many times to send the commands to achieve your targeted goal.For example (in pseudo-code):

if (current altitude => 2000 feet){ ZOOM_OUT; ZOOM_OUT; ZOOM_OUT; }

Fr. Bill    

AOPA Member: 07141481 AARP Member: 3209010556


     Avsim Board of Directors | Avsim Forums Moderator
  • Author
No. The list you have are all that's available...However, you could program a number of sequential ZOOM_IN or ZOOM_OUT events to a single operation, but you'd have to experiment to determine how many times to send the commands to achieve your targeted goal.For example (in pseudo-code):
if (current altitude => 2000 feet){ ZOOM_OUT; ZOOM_OUT; ZOOM_OUT; }

Hmmm. The problem with that is that if I was levelling off for a time at an intermediate altitude, I might end up with an odd zoom value at the end. I suppose I could have some certain altitudes at which zooming events occured and a "done" variable to tell what had happened - getting pretty complicated now though!Odd that there wasn't a ZOOM_SET variable... (and annoying)Geoff

Create an account or sign in to comment

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.