Jump to content
Sign in to follow this  
Guest ptwaugh

XML <Area Right=###> Question.

Recommended Posts

Guest ptwaugh

Here's the syntax:I've deleted the Tooltip tag's details for clarity. I'm confused on the left right part of the "area" command.In my Engine Oil gauge, the left side is the Pressure, yet that side is related to the top tag. I'm guessing the number is pixels.Anyone clarify this?

Share this post


Link to post
Share on other sites
Guest bartels

Isn't it the other way round?"Area Right" is the right border in pixel of that mouse area, so the area is LEFT of the right border. Therefore "Area Left" alone means the right side.If there is no Area specified, the mouse area has the same size and position as the next higher mouse area, if there is none higher, the gauges borders are taken. With every "Area ..." statement you limit the aforementioned area size. An "Area Top" limits to top, so everything below is valid. "Area Bottom" limits to bottom => higher is valid. "Area Left" limits to the left => right area is valid, etc... .Arne Bartels

Share this post


Link to post
Share on other sites

Actually, you both said the same thing, Arne, except your's is a bit clearer to read.In practice, I've found it much easier to stick with:TopLeftHeightWidthThus, when laying out a grid over the gauge background, all areas may be defined quickly and consistently... :)


Fr. Bill    

AOPA Member: 07141481 AARP Member: 3209010556


     Avsim Board of Directors | Avsim Forums Moderator

Share this post


Link to post
Share on other sites
Guest ptwaugh

Thanks guys, I was able to understand both of you. I knew it was simple once you understood the crazy logic behind it. I'm surprized I didn't get it. Probably not the easiest thing to get a 4am, haha.Anyway, now I understand it. Thanks again.

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...