Author Topic: [Solved?] How to make label overflow scroll instead of clamp?  (Read 1322 times)

Zylann

  • Newbie
  • *
  • Thank You
  • -Given: 0
  • -Receive: 0
  • Posts: 17
    • View Profile
[Solved?] How to make label overflow scroll instead of clamp?
« on: August 11, 2016, 12:44:35 PM »
I an using UIInput and a clamped label to implement a one-line text field.
If the text is too long to be contained in the label, I want it to scroll (so the beginning is not displayed, and the end is visible at the right as the user types).
Example: type text in the search bar of your browser, if it doesn't fits the text begins to scroll to the left, and scrolls to the right if you move the cursor past the left edge.

But the clamp overflow mode only prevents overflow from being shown. How can I make it so it scrolls?

Edit:
Apparently my label's max number of lines was set to zero. I set it to 1 and now the text scrolls on overflow. I wonder why it does that  :o
« Last Edit: August 12, 2016, 10:46:24 AM by Zylann »

ArenMook

  • Administrator
  • Hero Member
  • *****
  • Thank You
  • -Given: 337
  • -Receive: 1171
  • Posts: 22,128
  • Toronto, Canada
    • View Profile
Re: [Solved?] How to make label overflow scroll instead of clamp?
« Reply #1 on: August 13, 2016, 04:02:36 PM »
0 means unlimited. 1 means one line.