Welcome, Guest
  • Author Topic: Long text and scroll bar  (Read 649 times)

    Oscar

    • Server what's that
    • *
    • Posts: 15
      • View Profile
      • Email
    Long text and scroll bar
    « on: 10/28/05, 06:41 »
    Hi everyone!

    I have put a scroll bar associated to a dinamic text field, and the scroll bar is always there, even if there is no need of it.
    I only want that it appears when is needed.

    I can use the proeperty 'visible' of the component in an 'if' statement, but I don't know hot to know if the text needs the scroll bar so:

    There is some way to know if a text is larger than the cointainer where is going to be showed??

    Thank you

    Jorge Solis

    • Global Moderator
    • Systems Administrator
    • *****
    • Posts: 14616
      • View Profile
    Re: Long text and scroll bar
    « Reply #1 on: 10/28/05, 06:55 »
    Using a scrollBar component named myScroll and a dynamic multiline textfield named myText, try

    myScroll._visible = myText.maxScroll>1

    Jorge