Skip to main content

Eclipse Community Forums
Forum Search:

Search      Help    Register    Login    Home
Home » Eclipse Projects » Standard Widget Toolkit (SWT) » Caret Position
Caret Position [message #448256] Thu, 06 January 2005 14:40
Eclipse UserFriend
Originally posted by:


I have a problem with the caret/cursor position. Ok i explain what i did
an where the problem is.

Over the DocumentCreation extension point i added my own implementation
of the an IDocument. The difference between mine and the original is,
that i get the input from the user (in the replace method) and then
forward it to another thread which modifies it. After the modification
is complete the thread calls the original replace method and inserts the

Now there is a strange behavior, with the caret position. the position
of it advances by two instead of one. Its hard to explain, but when no
update is done (textually update) the caret advances anyway. I found
out, that the caret position is updated in the styledText widget even if
the modification is not done in the document. So i need a way to
stop/reset the caret position, after the first replace, because this
does nothing but do it after the modification.

i hope anybody understood what i mean, and has a possible solution.

Previous Topic:javacore at org.eclipse.swt.internal.motif.OS.XmFontListNextEntry
Next Topic:Menu and Dialog Events problem
Goto Forum:

Current Time: Tue May 18 08:44:18 GMT 2021

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

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

Back to the top