like what you want , it is for a little output console like the debugger's.
<window title="console" id="console"
visible="${app_console_debug}" width="1000" y="100" height="200" resizable="true">
<method name="write" args="objects">
<![CDATA[
var n = arguments.length
// Pass each value to __write individually so they can be
// 'presented' as objects if applicable
for (var i = 0; i < n; i++) {
var v = arguments[i];
var s = ((i == (n-1)) ? '\n' : ' ');
this.content.addText(escapeXML(v)+s);
sbar.page(sbar.scrollmax);
}
]]>
</method>
<method name="writeRaw" args="objects">
<![CDATA[
var n = arguments.length
// Pass each value to __write individually so they can be
// 'presented' as objects if applicable
for (var i = 0; i < n; i++) {
var v = arguments[i];
var s = ((i == (n-1)) ? '\n' : ' ');
this.content.addText(v+s);
sbar.page(sbar.scrollmax);
}
]]>
</method>
<text name="content" multiline='true' resize="true"
width="${parent.width}" />
<scrollbar name="sbar" id="sb"/>
</window>
On 12/9/05, Alfeu Marcatto <[EMAIL PROTECTED]> wrote:
I have a text object with a vertical scrollbar to show system messages
(same as Debug window).
When a message is added to the box I want show the last line.
How can I scroll the text to the last line programatically?
The step() function scrolls but it need the quantity of lines and I
don't know how I get that.
Thanks
_______________________________________________
Laszlo-user mailing list
[email protected]
http://www.openlaszlo.org/mailman/listinfo/laszlo-user
--
Henry Minsky
Software Architect
[EMAIL PROTECTED]
_______________________________________________ Laszlo-user mailing list [email protected] http://www.openlaszlo.org/mailman/listinfo/laszlo-user
