Skip to main content



      Home
Home » Eclipse Projects » Remote Application Platform (RAP) » Alternative to Text#setTopIndex
icon3.gif  Alternative to Text#setTopIndex [message #647665] Fri, 07 January 2011 11:46 Go to next message
Eclipse UserFriend
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 12:30 Go to previous message
Eclipse UserFriend
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,
Previous Topic:Profiling RAP Application
Next Topic:Phase Listener Error
Goto Forum:
  


Current Time: Wed Jul 23 12:53:05 EDT 2025

Powered by FUDForum. Page generated in 0.07852 seconds
.:: Contact :: Home ::.

Powered by: FUDforum 3.0.2.
Copyright ©2001-2010 FUDforum Bulletin Board Software

Back to the top