Method Community

 

scrollable readonly textbox

Last post 02-18-2015 9:45 AM by Method_Justin. 2 replies.
Page 1 of 1 (3 items)
Sort Posts: Previous Next
  • 02-15-2015 1:36 PM

    scrollable readonly textbox

    I wuold like to display, in read only mode, a field containing a long set of notes. Because they are long, I want them to be scrollble within the number of lines set for the field.  Unfortunately, when it displays in read mode, the entire contents are shown and the Section gets elongated.  Is there a way to make a text box scrollable within the box?

    Pamela Keffer
  • 02-18-2015 9:41 AM In reply to

    Re: scrollable readonly textbox

    Answer

    Hi kefpa01,

    Sorry for the late reply. There's no way to make a textbox scrollable within a certain space. If you were to do this in a grid, you could hide the text behind a "more" link after a certain number of characters, but this isn't possible with a regular textbox on screen.

    - Justin

    Justin Henderiks
    Technical Sales Specialist
    Method Integration Inc.
    Toll Free: 1.888.925.6238
    Local and overseas: 416.847.0400
    Fax: 416.640.6027
    E-mail: j.henderiks@method.me
  • 02-18-2015 9:45 AM In reply to

    Re: scrollable readonly textbox

    Answer

    kefpa01,

    I should mention: you could untick the checkbox for read-only and use some actions to effectively make the textbox non-editable. You could do this by saving the contents of the textbox to an Action Result on the Gain Focus event, and then re-entering that Action Result into the textbox on its Lose Focus event. This would prevent your users from editing it, while allowing you to define its size on the screen.

    Hope this helps.

    - Justin

    Justin Henderiks
    Technical Sales Specialist
    Method Integration Inc.
    Toll Free: 1.888.925.6238
    Local and overseas: 416.847.0400
    Fax: 416.640.6027
    E-mail: j.henderiks@method.me
Page 1 of 1 (3 items)