|Caret Position [message #448256]
||Thu, 06 January 2005 14:40
Originally posted by: mcico.web.de|
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.
Powered by FUDForum
. Page generated in 0.01676 seconds