Jump to content
Sign in to follow this  
Rocky

Locating a gauge in 2D Panel

Recommended Posts

Hello,I am trying to make a 2D panel "introspection".I have the X,Y coordinates of a point (relative to the FS Window) and I would like to locate what gauge, if any, is located at these coordinates.Do you know how this can be done?If possible, I would like to fetch the list of all the gauges, with their position (X,Y), width and height, but I don't know if this can be found...Thanks for any info.Eric

Share this post


Link to post
Share on other sites

Hi Eric,I haven't heard of such a program that does this kind of panel.cfg analysing...But you being a C++ programmer, it shouldn't be too difficult to make such a panel.cfg parsing program, should it ??Or maybe such a program could more easily be made in XML ?? :-)Cheers, Rob

Share this post


Link to post
Share on other sites

Hello Rob,I apreciate your humour :-) (seriously), but I'm not sure everyone will understand this joke...Indeed, one possible solution consists in parsing the panel.cfg file, but 1) it is complex (even in C++) and 2) I don't know how to find the name of the panel.cfg currently loaded.Thanks for your help anyway !!Eric

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