February 12, 201115 yr Hello Folks,Just a quick, easy question:I've placed a pop-up gauge in my cockpit and the positioning is very close to where I want it. I just want to move it about 2 pixels lower but can't seem to make the adjustment with the usual "window_pos=" parameter. I know this is expressed in percentages and the value I want is between 56 and 57 percent. I tried 56.5 but it doesn't move the gauge until I try 57, which is too far.Can someone guide me how to make that small change? https://www.mediafire.com/view/dz3buh31pti9cej/BoeingDriverSignature.jpg/file
February 12, 201115 yr Are you talking about FS9? Well, I know that the overall size of the main window has to do with it: [Window00]size_mm=1600,1200On default panels it's mostly 640 or something. I assume you're running your sim at more than 1024x... screen resolution and you want to move your gauge by 2px. The main window size is the limit here, the resolution of 640 can't distinguish 2px of the 1024 image. Increasing size_mm would help, but caution: the relative position of all gauges will be changed, too!So excuse my complicated explanation, bottom line is if your panel was created at a low resolution, you can't do what you want without a lot of work. Switchboard - Track Your Simulator Add-ons - Throttle Quadrant
February 13, 201115 yr Author A little information about my system:I'm using FSX with a screen resolution set to 1440 x 900. In addition, I'm trying to match the pop-up gauge's placement to the upper corner of an existing gauge. It would be simple enough to match the coordinates of that gauge, but of course, those are in pixels, whereas this pop-up gauge is placed by a percentage of the screen.So to clarify, its not the size of the window but the placement of it I'm trying to adjust. https://www.mediafire.com/view/dz3buh31pti9cej/BoeingDriverSignature.jpg/file
February 13, 201115 yr So to clarify, its not the size of the window but the placement of it I'm trying to adjust.I'm still not sure what you are trying to achieve, but I guess you want to overlay part of a main 2D-cockpit window with another (pop-up) gauge, at an exact location and an exact size (both relative to the underlying main panel window).If so:The accuracy of the window_size and window_pos values (minimal position/size changes) is determined by the size of the overlay window. So it's much better to define a window larger then any screen resolution, and let FS scale it to a fullscreen (transparant) window, using window_size=1,1Like in:[Window**]size_mm=2000,2000Background_color=0,0,0 window_size= 1,1window_pos= 0,0visible=0ident=WhatEverYouUsegauge00='YourGauge', hor-pos, vert-pos, hor-size, vert-sizeThis allows you to position your overlay gauge pixel-precise anywhere on the screen, with pixel-precise dimensions.And also makes it easy to add more gauges in this overlay window, overlaying your main panel window with multiple gauges.Like now(just an example):gauge00='YourGauge', 900,900,200,200 will be visible exactly in the center, with a size exactly 10% height/width, of the window FSX runs in (c.q. your screen when in FullScreen mode).Rob
February 13, 201115 yr I'm still not sure what you are trying to achieve, but I guess you want to overlay part of a main 2D-cockpit window with another (pop-up) gauge, at an exact location and an exact size (both relative to the underlying main panel window).If so:The accuracy of the window_size and window_pos values (minimal position/size changes) is determined by the size of the overlay window. So it's much better to define a window larger then any screen resolution, and let FS scale it to a fullscreen (transparant) window, using window_size=1,1Like in:[Window**]size_mm=2000,2000Background_color=0,0,0 window_size= 1,1window_pos= 0,0visible=0ident=WhatEverYouUsegauge00='YourGauge', hor-pos, vert-pos, hor-size, vert-sizeThis allows you to position your overlay gauge pixel-precise anywhere on the screen, with pixel-precise dimensions.And also makes it easy to add more gauges in this overlay window, overlaying your main panel window with multiple gauges.Like now(just an example):gauge00='YourGauge', 900,900,200,200 will be visible exactly in the center, with a size exactly 10% height/width, of the window FSX runs in (c.q. your screen when in FullScreen mode).RobThat's eyactly what I meant, thanks Rob. BUT: Changing the size_mm of an existing panel will result in ALL gauges being misplaced!See this example of the FS9 default 737. I changed size_mm from 640 x ... to 860 x ... Now the entry gauge00=737-400!Airspeed, 0, 64 still refers to 640. To get the same position you need to calculate 860/640=1,34375 and put:gauge00=737-400!Airspeed, 0, 86 (64*1,34375)Like I said - a lot of work. Switchboard - Track Your Simulator Add-ons - Throttle Quadrant
February 13, 201115 yr Moderator The task is fairly trivial using FS Panel Studio. Fr. Bill AOPA Member: 07141481 AARP Member: 3209010556 Avsim Board of Directors | Avsim Forums Moderator
February 13, 201115 yr That's eyactly what I meant, thanks Rob. BUT: Changing the size_mm of an existing panel will result in ALL gauges being misplaced!See this example of the FS9 default 737. I changed size_mm from 640 x ... to 860 x ... Now the entry gauge00=737-400!Airspeed, 0, 64 still refers to 640. To get the same position you need to calculate 860/640=1,34375 and put:gauge00=737-400!Airspeed, 0, 86 (64*1,34375)Like I said - a lot of work.Yes, of course it does.If you change the size_mm of an existing window with a lot of gauges, you have to change all gauge placements ..Manually or with Panel Studio.But that was not your question.You asked about a single pop-up gauge overlaying the main panel. For that you don't have to change the main panel window.Rob
February 13, 201115 yr Author I'm still not sure what you are trying to achieve, but I guess you want to overlay part of a main 2D-cockpit window with another (pop-up) gauge, at an exact location and an exact size (both relative to the underlying main panel window).If so:Hmm, I'm not sure I follow you here but I may have miscommunicated my intentions. :( What I've done is to create a new window for a gauge, specifically, a small button, like a simicon. I want to place that button (size 30x30) on top of an existing gauge. I have to do it as a new window, otherwise the button will be behind the existing gauge and not visible.Anyway, I've been able to acheive the result I want, except that the button is about 1 or 2 pixels too far over. If I adjust the position of it by the line "window_pos=", I can't place it accurately enough. Isn't there a way to do this without moving every other gauge in the cockpit? https://www.mediafire.com/view/dz3buh31pti9cej/BoeingDriverSignature.jpg/file
February 13, 201115 yr Hmm, I'm not sure I follow you here but I may have miscommunicated my intentions. :( What I've done is to create a new window for a gauge, specifically, a small button, like a simicon. I want to place that button (size 30x30) on top of an existing gauge. I have to do it as a new window, otherwise the button will be behind the existing gauge and not visible.Anyway, I've been able to acheive the result I want, except that the button is about 1 or 2 pixels too far over. If I adjust the position of it by the line "window_pos=", I can't place it accurately enough. Isn't there a way to do this without moving every other gauge in the cockpit?Hi, What's unclear about post #5 ?? Because that describes exactly what you want to do.(one gauge in a new window, overlaying a gauge in the main panel window).Just that; no need to change any other window in that panel.cfg
Create an account or sign in to comment