NeverBoring
01-15-2006, 10:52 AM
Greetings:
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.
n4gix
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:
//--------------------------------------------------------
[Window09]
Background_color=0,0,0
size_mm=301,472
window_size_ratio=1.000
position=0
visible=0
ident=OVERHEAD_PANEL
window_size= 0.183, 0.388
window_pos= 0.820, 0.000
gauge00=ESCirrusSR22!CAPS, 0,0,300,471
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).
NeverBoring
01-15-2006, 04:29 PM
Thank you for the information. I appreciate the help.
Gary
Powered by vBulletin® Version 4.2.0 Copyright © 2013 vBulletin Solutions, Inc. All rights reserved.