View Full Version : Scrollable text edit field
epopov
06-29-2004, 09:45 AM
Hi,
Is it possible to create text edit field with variable height and scrollbar (i.e. when you type a lot of text height of the input text increases)? Can you give me an example if it is possible?
Thank you.
Fresh Mike
10-21-2004, 09:02 AM
Same for me, I have a dynamically set multiline text field and I need to be able to change the scrollmax when I do setText on the text field contained in the scrollable view.
But the scrollmax property is final, so it is not possible to change it by script. As the scrollmax property was initialized with the original height of the view, who's empty at first, the scrollbar is disabled.
What can I do to make the view scrollable?
Fresh Mike
10-09-2005, 04:07 PM
One year afterwards, I still haven't found the solution!
[Edit:]
Oh my god, one year and a half afterwards, I found a solution!
Antun thanks for your answer, I think it answers to the initial question of this thread i.e. an scrollable edit field.
My problem was different, it was to fit a dynamically set image into a scrollable view, but each time I changed the image, the scrollable view's height increased. Now I have found a solution, which is to setVisible(false) the image inside the method called when I change the source of it, and to setVisible(true) inside the method launched at event onload for the image. It seems to set again the new height depending on the image loaded. At least, it works for me now. Or maybe it is because of other changes in the code I didn't track.
antun
10-10-2005, 02:59 PM
If you look in the lps/components/incubator directory (of 3.0.2+), you'll see a scrollinputtext.lzx class. This is exactly what you want; it's just not part of the standard components set yet.
-Antun
vBulletin® v3.8.4, Copyright ©2000-2012, Jelsoft Enterprises Ltd.