Sign in to follow this  
phjvh

Trouble with gauge sizes in Panel.cfg

Recommended Posts

I've create a new gauge for the default FS2004 737.The bitmap for the gauge is 356 pixels wide by 215 pixels high as was created using Paint Shop.The gauge sits in its own "separate window" on the FS screen.I'm having a terrible time getting the gauge and window to size in accordance with the "actual" size of the gauge.I've tried many combinations in addition to studying the Panels SDK.How would I enter this in the panel cfg?Thanks

Share this post


Link to post
Share on other sites
Help AVSIM continue to serve you!
Please donate today!

Hi Brian,Assuming your don't use a background bitmap (since your gauge has it's own bitmap and there's only one gauge in the window), try the following:[Window**]size_mm=356,215window_size= xxx, yyywindow_pos= xxx, yyybackground_color=16,16,16visible=0ident=???? gauge00=yourgauges!gauge,0,0,356,215window_pos: 0.0,0.0 is top-left corner, 1.0,1.0 is bottom-right.window_size: the dimensions of the window E.g. window_size= 0.3, 0.4 makes the window 30% screenwidth and 40% screenHeigth, independant of the bitmap resolution used in the main panel window).So, given the normal screen proportions (4:3), for your gauge this would mean (if your intention is to keep the proportions of 356*215 on a 1024*768 scale):window_size= 0.35, 0.28(0.28 = 215 / 768)(0.35 = 356 / 1024)Rob

Share this post


Link to post
Share on other sites

Hi,In case of the other way (Bitmap is gauge background, using xml):gaugexx=!gaugename,aaa(X position),bbb(Y pos.),ccc(Width),ddd(Height).But mind: all bitmaps must have the correct size in relation to each other.You cannot use anymore the command: Jan"Procul Negotiis"

Share this post


Link to post
Share on other sites

Your content will need to be approved by a moderator

Guest
You are commenting as a guest. If you have an account, please sign in.
Reply to this topic...

×   Pasted as rich text.   Paste as plain text instead

  Only 75 emoji are allowed.

×   Your link has been automatically embedded.   Display as a link instead

×   Your previous content has been restored.   Clear editor

×   You cannot paste images directly. Upload or insert images from URL.

Sign in to follow this