Alternative to Text#setTopIndex [message #647665] |
Fri, 07 January 2011 16:46 |
|
Hi,
Does someone know an alternative to the method setTopIndex for the Text component ?
If not, would it be possible to include it in the next milestone ?
Thanks in advance,
|
|
|
Re: Alternative to Text#setTopIndex [message #647676 is a reply to message #647665] |
Fri, 07 January 2011 17:30 |
Elias Volanakis Messages: 43 Registered: July 2009 |
Member |
|
|
Hi,
if I remember correctly, you should be able to use:
text.setSelection(n, n);
This should move the cursor to position n, without selecting anything
and scroll to make it visible. You will need to know the char. position
at the start of line X.
If you are adding text to a Text widget and want to scroll to show the
new text, then try: text.append(string); This will scroll to the bottom
automatically.
Hope this helps,
Elias.
On 1/7/2011 08:46, Opfermann C wrote:
> Hi,
>
> Does someone know an alternative to the method setTopIndex for the Text
> component ?
> If not, would it be possible to include it in the next milestone ?
>
> Thanks in advance,
|
|
|
Powered by
FUDForum. Page generated in 0.03341 seconds