|
Post by robertorizzo on Nov 21, 2009 16:31:31 GMT -5
Cleared for that! Great idea.
|
|
|
Post by okami on Nov 21, 2009 18:51:27 GMT -5
Looks like a wonderful idea, Tom! ... scenery looks oddly familiar... <.<
|
|
|
Post by doylebob on Nov 22, 2009 11:32:38 GMT -5
Hi Tom,
Thanks for your earlier detailed response. I think now I'm actually beginning to understand. I've played with it a bit more and the results are now what I was looking for. But, having a different resloution on my monitor, I needed to "adjust" the numbers in your example.
My monitor resolution is 1920 x 1200 (a 1.6:1 ratio) so following the logic in your example - 1.6 / 1.333 = 1.2 1024 * 1.2 = 1229 so I made the bmp 1229 wide. So far so good!
The last part of your explanation has me a bit perplexed though. I wonder if you could please help me get my head around it?
Taken from the end of your post............ "........change the line: size_mm=1280,1024 to: size_mm=1706,1024 since 1280 multiplied by 1.3333 is 1706........"
So, continuing to follow your example, my entry should be size_mm=1536,1024 (1280*1.2 - correct?)
But where does the "1280,1024" in the first line come from? I can't figure that out.
Thanks, and I really appreciate you taking the time to help me understand.
Regards,
Bob
|
|
|
Post by Tom/CalClassic on Nov 22, 2009 13:49:24 GMT -5
Hi, I have no idea where the numbers 1280,1024 comes from to be honest (this panel was derived from the 580 panel, which was originally created by someone else), other than they create a 4:3 ratio. My guess is that many panels use "1024" as a common resolution, and since they wanted a 4:3 ratio, that turns out to be 1280 x 1024. The Panels SDK describes this line as "Specifies the size of the panel window, in millimeters. " I don't know what millimeters has to do with it. I would predict you could use a line like size_mm=4,3 and it may still work. And yes, you have it calculated perfectly.
|
|
|
Post by doylebob on Nov 22, 2009 14:59:48 GMT -5
Hi Tom,
Thanks for that. As I said I was playing around and discovered that it seems to have no bearing on the ratio/size of the display. It looks to me like it has more to do with the placement of gauges (left to right). (ie. 640= 0-640 positions from left to right, 1024= 0-1024 positions from left to right). Also the smaller the number, the larger the gauges will display without modifying their size in the panel config. and the larger the number, the smaller the gauges will display. There may be some other relationship to it, I don't know.
What I found was crucial to the background distortion was the entry "window_size= 1.0, 1.0" Without this line the modified bmp will not display correctly for me.
So my new background bmp is 1229x768 (from 1024x768)
And, my new entry in the panel.cfg looks like this.......
[Window00] file=Main_wide.bmp size_mm=1229 position=0 visible=1 ident=MAIN_PANEL window_size= 1.0, 1.0
This seems to work perfectly. Now all I have to do is change all the gauge size & placement entries.
(BTW - If I make "size_mm=768", I have almost no changes to make in the panel config. I might go with this one).
Thanks a million for your help
Bob.
|
|
|
Post by Tom/CalClassic on Nov 22, 2009 21:04:14 GMT -5
Glad it's working for you.
I didn't have to change any gauge positions with the values I used either. But as you found, there are others that can do that too.
|
|
|
Post by Johan Dees on Nov 23, 2009 17:28:41 GMT -5
I made a bitmap of 3360x1050, and entered size_mm=3360 and it showed up nicely. Also kept : [Default View] X=0 Y=0 SIZE_X=8192 SIZE_Y=2943
So one can make it fully custom.
|
|