Announcement

Collapse
No announcement yet.

UMG Text Box Content Alignment

Collapse
X
  • Filter
  • Time
  • Show
Clear All
new posts

    UMG Text Box Content Alignment

    Hi,

    I was toying with UMG today (UE 4.9.2) and when trying to make a quantity input box, I couldn't find any way to get the input text aligned to the right, what I get is:
    [125..........]
    but what I need is:
    [..........125]

    I tried with having a container with the inner text box set to auto-size anchored right like:
    [..........[125]]

    My issue with this is if I don't click directly on the text box, the focus is not set to it, and due to containment, the textbox area is kept small.

    Just having a text alignment (Left, Center, Right) or content alignment feature would be nice.
    Having some kind of support for decimals, like for a price similar, would be nice too but not essential.

    In the meantime, is there a way to get that behavior, maybe I could select the text box when the container is clicked on or a way to set the right alignment on that text box text?

    Max.

    #2
    Does the justification do nothing for you? Maybe the context of your widget would help...where your text block is, how it's nested, etc.
    Tracey White - Senior Design Visualization Artist / PC Game Enthusiast / Drummer
    My Maze Game development video series
    My Maze Game Blog

    Comment


      #3
      This is a Text Box, single line input. I do not see a Justification attribute on this control.

      Comment


        #4
        Right here:
        Tracey White - Senior Design Visualization Artist / PC Game Enthusiast / Drummer
        My Maze Game development video series
        My Maze Game Blog

        Comment


          #5
          Yes, you are right for a text block, but this is not what i'm having an issue with. I have an issue with the text box, which is the input version of text block, where i can enter values into. Text Block only displays the value.

          Click image for larger version

Name:	textbox-has-no-alignment.PNG
Views:	1
Size:	105.2 KB
ID:	1092213

          Comment


            #6
            Nevermind, guess I wasn't searching properly the first time, I did find this exact issue in answerhub, its not supported yet.

            Comment

            Working...
            X