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.

PGAUGE variable question

Featured Replies

  • Commercial Member

Does anybody know what pgauge->x_adjust and pgauge->y_adjust represent? They are fractional numbers, and I assume they have something to do with positioning of the gauge on the panel.The variable pgauge->position.x and pgauge->position.y seem to tell me a position, but those appear to be relative to something other than the top of the screen, perhaps relative to the top of the panel background? The variable pgauge->size_x_mm and size_y_mm tell me the size as specified in panel.cfg, but I'm not sure if those are of any use with regards to finding a gauge's absolute position on the FS window.So 2 questions:1. What are x_adjust and y_adjust?2. If position.x and position.y are relative to the panel background, is there anything that tells me the position of the panel background (not the gauge background, the panel background).

  • Author
  • Commercial Member

I can now clarify some details in my own question above. It apepars that pgauge->x_adjust and pgauge->y_adjust are simply the scaling factors used in sizing the gauge to fit onto your current FS window shape. These adjustment numbers, multiplied with your gauge's original background size, will arrive at the values stored in pgauge->size.x and pguage->size.y.But this still leaves me looking at pgauge->position.x and pgauge->position.y and knowing that those values are definitely not relative to the top of the FS window. Any ideas?

  • Author
  • Commercial Member

And more informaton to clarify my own question, I can get the correct panel window, but interestingly, the DC for the panel window is not valid until after the panel has been undocked then re-docked, probably initalizing something that otherwise isn't initialized. Almost there, though :)

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.