Jump to content
Sign in to follow this  
Guest bartels

Hopefully a simple XML question

Recommended Posts

Guest scoman81

How can I right-justify a FormattedText element?Thanks,Dave

Share this post


Link to post
Share on other sites

Hi,With Tabs.for example:Tabs="0R,10L,140C,270R,280R" etc.Hope it helps,Jan"Beatus Ille Procul Negotiis"

Share this post


Link to post
Share on other sites
Guest scoman81

Thank you - that got me looking in the right place. I also found the Adjust="Right" attribute, for the simple case of when the entire string needs to be right-justified.Thanks!Dave

Share this post


Link to post
Share on other sites
Guest bartels

It is also possible to use the format specifications: e.g. a string should be 5 chars long and right justified:....! 5s!....If the format is specified with the full count of chars (5 here) and a preceeeding space is used, the text is right aligned and not left (or you could say padded with spaces to the left).E.g.....!05d!....would format an integer number and padd it with zero to the left.Arne Bartels

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