The attached code should do just what you need, I've just verified it on
OL 3.3.3.
Best of luck with your presentation.
David
Hi Benjamin,
I went ahead and downloaded Stable openLazlo release and STILL IT
DOESNT WORK :-(
All I want is scroll bar to automatically move down as more text is
added programmatically (its an protype chat application)
I have written with 4 versions of code what could have been a simple
text area component functionality other frameworks seems to easily
provide .
I am sending all version of my code ...Can you giuys make it Work ??
What i intend to do is simple (prototype) ....
Anything user writes in edittext (userMsg) is displayed in another
read only component (chatMsg) AND Scrollbar should move down if
extra text is added ...its really frustrating I have wasted so much
time such a simple ....I have to show a protype on monday to client
get approval for building application on laszlo platform !!
<canvas width="100%" height="100%">
<window title="Alabot Answers"
align="center" valign="middle" width="220" height="260" >
<view x="10" y="20" width="175" height="140" clip="true" bgcolor="0x6895F0">
<text id="chatMsg" multiline="true" fgcolor="white"/>
<scrollbar id="scroll"/>
</view>
<edittext x="10" y="175" width="175" doesenter="true">
<method name="doEnterDown">
chatMsg.setText(chatMsg.getText() + " \n "+ this.getText());
this.setText ("");
scroll.page(1);
</method>
</edittext>
</window>
</canvas>