Skip to main content


Eclipse Community Forums
Forum Search:

Search      Help    Register    Login    Home
Home » Eclipse Projects » Remote Application Platform (RAP) » Controlling the Scrollbar position in a Text Widget
Controlling the Scrollbar position in a Text Widget [message #653723] Thu, 10 February 2011 20:41 Go to next message
Mike is currently offline MikeFriend
Messages: 2
Registered: February 2011
Junior Member
Hi,

I have a text widget which is updated periodically (kind of like a log) where new information is appended to the end of the text widget every few seconds by the system. I would like to make the widgets scroll to always be set to the bottom of the widget so the latest entry is always shown, i have tried using setSelection but this does not seem to work. I am using Rap 1.4 M5.

Thanks
Re: Controlling the Scrollbar position in a Text Widget [message #653733 is a reply to message #653723] Thu, 10 February 2011 21:15 Go to previous message
Ivan Furnadjiev is currently offline Ivan FurnadjievFriend
Messages: 2359
Registered: July 2009
Location: Sofia, Bulgaria
Senior Member
Hi Mike,
unfortunately, it is still not possible. See bug:
319227: [Text] Multi text does not auto-scroll on append, insert operation
https://bugs.eclipse.org/bugs/show_bug.cgi?id=319227
Maybe as a workaround you could insert the new log entries at the
beginning of the Text widgets instead at the end. In this case you will
have always new entries on the top - no need to auto-scroll
Best,
Ivan

On 2/10/2011 10:41 PM, Mike wrote:
> Hi,
>
> I have a text widget which is updated periodically (kind of like a
> log) where new information is appended to the end of the text widget
> every few seconds by the system. I would like to make the widgets
> scroll to always be set to the bottom of the widget so the latest
> entry is always shown, i have tried using setSelection but this does
> not seem to work. I am using Rap 1.4 M5.
>
> Thanks
Previous Topic:Keybinding's scheme
Next Topic:JUNG loading grpah question
Goto Forum:
  


Current Time: Fri Oct 22 04:47:26 GMT 2021

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

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

Back to the top