Jump to content
Sign in to follow this  
phjvh

Trouble with gauge sizes in Panel.cfg

Recommended Posts

Guest Bryan

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

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

Create an account or sign in to comment

You need to be a member in order to leave a comment

Create an account

Sign up for a new account in our community. It's easy!

Register a new account

Sign in

Already have an account? Sign in here.

Sign In Now
Sign in to follow this  

  • Tom Allensworth,
    Founder of AVSIM Online


  • Flight Simulation's Premier Resource!

    AVSIM is a free service to the flight simulation community. AVSIM is staffed completely by volunteers and all funds donated to AVSIM go directly back to supporting the community. Your donation here helps to pay our bandwidth costs, emergency funding, and other general costs that crop up from time to time. Thank you for your support!

    Click here for more information and to see all donations year to date.
×
×
  • Create New...