Jump to content
Sign in to follow this  
Guest thierry38D

How to draw dashed line and dashed circle in XML gauge ?

Recommended Posts

Guest thierry38D

Hi there,I am looking for plotting some dashed circle in an XML gauge but I cannot succeed until now ! (despite my three years long experience of xml coding)Does any body know if it can be done using XML language ?And if so, which argument or instruction should I use to draw such kind of dashed line or dashed circle (of course, without using any bitmap !)Thanks in advance,Thierry

Share this post


Link to post
Share on other sites

Hi,1. Dashed line: <Formattedtext><String>- - - - - -</String></Formattedtext>2. Determine the coordinates of the points in the dashed circle and draw polylines.It works for me.Jan

Share this post


Link to post
Share on other sites

I haven’t had to do this, but I like #1 – efficient and clever.Option 2 means lots of data and draws.It might be a good place to try a macro of some sort.I think “Goto label” (g4 and :4 ) might even provide a simple loop to draw each line segment.You could send dash length, space length, and total length as macro arguments.It’s an expensive way to draw a dashed lines though.

Share this post


Link to post
Share on other sites

Set up a loop and draw a series of mini-arcs...


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

Hi,Another way is placing a black polygon with the shape of a gear wheel in front of the circle.Of coure a bit coding too, but just 1 element...jan

Share this post


Link to post
Share on other sites

I see it's been awhile so I don't know if this is archived yet. I make a circle in MS Excel with dashed/dotted line. I make sure its height equals its width. Copy it, and paste it in MSPaint. I then then fill with black (0,0,0,) and save the bmp. I then use it my gauge with the background of the image as black.

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