Skip to main content


Eclipse Community Forums
Forum Search:

Search      Help    Register    Login    Home
Home » Eclipse Projects » Remote Application Platform (RAP) » Alternative to Text#setTopIndex
icon3.gif  Alternative to Text#setTopIndex [message #647665] Fri, 07 January 2011 16:46 Go to next message
Opfermann C is currently offline Opfermann CFriend
Messages: 53
Registered: July 2009
Location: Annecy
Member
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 Go to previous message
Elias Volanakis is currently offline Elias VolanakisFriend
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,
Previous Topic:Profiling RAP Application
Next Topic:Phase Listener Error
Goto Forum:
  


Current Time: Sat Apr 27 04:52:23 GMT 2024

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

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

Back to the top