PDA

View Full Version : Gauge Positioning



Weather
02-17-2006, 08:44 AM
Hi everyone, I'm working on a new panel and somehow or another seem to be working on a different scale in a smaller panel window. Syntax for the window is:

[window01]
file=eicas.bmp
Background_color=0,0,0
size_mm=84.667,58.661
window_size_ratio=1.0
//window_size_ratio=1.438
position=0
visible=0
ident=eicas
window_size= 0.570,0.539
window_pos= 0.481,0.459

I really don't mind dealing with the different scale but I need at least one decimal place control for gauge positioning. Can I set something to allow it. It seems that no matter what I try, the gauge positions only recognize whole digits. Is there something to change above that would make this tight of control a little easier.

Thanks folks
Joel

n4gix
02-18-2006, 02:12 PM
position=0 is a left over for a depecrated system, that allowed only for 9 panel positions.

Leave it at 0 and forget it's there...

Use instead window_pos and window_size... that's what they are for...

Note that window_size should be the same ratio as your gauge's h/w ratio, or the combined h/w of all the gauges on the subpanel.

window_pos is a percentage of the distance from the upper left corner of the subpanel and the 0,0 coordinates of the screen.

window_pos= 0.481,0.459

in the example listed, the upper left corner of the window will be set to 48.1% of the screen width and 45.9 of the screen height, regardless of the screen's resolution.

There - now you have your "at least one decimal of precision" already available... ;)

BTW, FS Panel Studio ($49) is the best investement anyone who's serious about panel development/modifying could possibly make...

Weather
02-18-2006, 04:55 PM
Thanks Bill, for once I think I'm going to buy some external software instead of always trying to do it myself.

Weather

n4gix
02-19-2006, 11:23 PM
>Thanks Bill, for once I think I'm going to buy some external
>software instead of always trying to do it myself.

There's something to be said for being able to simply drag-n-drop stuff on the panel background... ;)

It's tough being a Luddite, isn't it?
:+