01-15-2006, 10:52 AM
I wish to know how to correctly size and locate a pop-up window on a panel I designed. I have a seperate window that shows radio gauges and I am tired of sizing and placing it every time I start the plane.
01-15-2006, 01:38 PM
All of the configuration information is in the Panels & Gauges SDK, but rather than wade through all that, here's the "Cliff's Notes" version:
window_size= 0.183, 0.388
window_pos= 0.820, 0.000
The size_mm entry should be the actual width & height of the combined gauges in the window. In this example, the gauge's actual size is 300x471, so size_mm is set the the same value.
window_size_ratio is set to 1.0 because we are going to use the last two parameters for actual placment and size of the display.
window_size is set as a ratio of the size_mm and screen size. This allows FS9 to properly scale the display for any screen resolution automatically. In this example, the width is set for 0.183 of the screen's total width, and the height is set for 0.388 of the screen's total height.
window_pos is used to specify where on the screen the sub-window will appear. In this example, the window will be placed at 0.820 of the screen width (which is 82% or right side of the screen) and at 0.00 height (which is 0% or top of the screen).
01-15-2006, 04:29 PM
Thank you for the information. I appreciate the help.
Powered by vBulletin® Version 4.2.0 Copyright © 2013 vBulletin Solutions, Inc. All rights reserved.