• Which the release of FS2020 we see an explosition of activity on the forun and of course we are very happy to see this. But having all questions about FS2020 in one forum becomes a bit messy. So therefore we would like to ask you all to use the following guidelines when posting your questions:

    • Tag FS2020 specific questions with the MSFS2020 tag.
    • Questions about making 3D assets can be posted in the 3D asset design forum. Either post them in the subforum of the modelling tool you use or in the general forum if they are general.
    • Questions about aircraft design can be posted in the Aircraft design forum
    • Questions about airport design can be posted in the FS2020 airport design forum. Once airport development tools have been updated for FS2020 you can post tool speciifc questions in the subforums of those tools as well of course.
    • Questions about terrain design can be posted in the FS2020 terrain design forum.
    • Questions about SimConnect can be posted in the SimConnect forum.

    Any other question that is not specific to an aspect of development or tool can be posted in the General chat forum.

    By following these guidelines we make sure that the forums remain easy to read for everybody and also that the right people can find your post to answer it.

FSX vertical text

Messages
192
Country
netherlandsantilles
Hi All,
Maybe a stupid question but I search around unable to find any mention:
is there a way to write text vertically in a gauge using fs9 style in XML? I have a rectangle and I want to write a text vertically in it but I cannot find a way to do it.
Something like this. I cannot find a good explanation in the SDK. thank you.

1620445116672.png
 
Messages
211
Country
us-ohio
Hello Adino, - Could You paste a jpeg, or bmp that You created in photo shop, or gimp ?? Or could You write Your text one letter , one line at a time ?? - Johnman
 
Messages
192
Country
netherlandsantilles
Hello Adino, - Could You paste a jpeg, or bmp that You created in photo shop, or gimp ?? Or could You write Your text one letter , one line at a time ?? - Johnman
Yes I already have a bitmap but because of the bitmap size constrains to fit within this gauge it doesn't look sharp so I rather go with the text option hopefully it can be sharper...but I cannot find a suitable example how to write a text vertical using text formatting.

This is what I have but obviously it writes horizontally:

Code:
      <Element Name="MAX SPEED FLAG">
         <Visible>(L:Vmo, bool) (L:Mmo,bool) or (L:dclutter, bool) 0 == and</Visible> 
         <Position X="48" Y="65"/>   
         <Rectangle Width="9" Height="62" FillColor="Gold" Bright="Yes" Luminous="Yes" LineWidth="0"/>
         <Element>     
            <Position X="2" Y="2"/>
            <Text Axis="0,0" WidthFit="true" VerticalAlign="bottom" PointsTo="west" Luminous="Yes" X="40" Y="9" Length="10" Font="Arial" FontSize="9" Color="red" VerticalAdjust="Center" Multiline="yes" >
               <String>MAX SPD</String>
            </Text>
         </Element>         
      </Element>
 
Messages
433
Country
us-wisconsin
Or could You write Your text one letter , one line at a time ?? - Johnman
This is how I did it, although you must use <FormattedText> rather than <Text>.
See XML: Escape Sequences here in the FSDev WIKI for more info.
Here it is, tested in the sim (full size) :
Image2.png

XML:
<Element Name="MAX SPEED FLAG">
    <Visible>(L:Vmo, bool) (L:Mmo,bool) or (L:dclutter, bool) 0 == and</Visible>
    <Position X="48" Y="65"/>         
        <Element Name="MAX SPD STRING">           
            <FormattedText X="9" Y="62" Length="1" Luminous="Yes" Font="ArialBlack" FontSize="9" FontWeight="800" BackgroundColor="Gold" Color="Red" LineSpacing="8">
                <String>
                    %\{lsp=3}% %\{lsp}\n
                    %\{tabs=0L,4C}\t%M%\n
                    %\{tabs=0L,4C}\t%A%\n
                    %\{tabs=0L,4C}\t%X%\n
                    %\{lsp=7}% %\{lsp}\n
                    %\{tabs=0L,4C}\t%S%\n
                    %\{tabs=0L,4C}\t%P%\n
                    %\{tabs=0L,4C}\t%D%\n                                               
                </String>   
            </FormattedText>           
        </Element>         
</Element>
 
Last edited:
Messages
192
Country
netherlandsantilles
Roman, I'm not sure how you made this work but I found this wiki on the subject so I will try to decipher this crypto language :)
@johnman: My bad I did not understand you were referring to this but anyway I don't have the skills to this with this formatted text method I will study it now. Thank you all for your help!
 
Last edited:
Top