Posted 15 years ago
by Arie Osherov
-
Cellebrite

Hi.
SyntaxEditor 9.2.515.0
When text is being deleted with Document.DeleteText() the Track's Thumb is jumping to beginning of the document.
But if i use Document.AppendText(), Thumb does not move.
this is my code:
var txtChangeOptions = new ActiproSoftware.Text.Implementation.TextChangeOptions();
txtChangeOptions.RetainSelection = true;
_Editor.Document.AppendText(ActiproSoftware.Text.TextChangeTypes.Typing, "........", txtChangeOptions);
var txtChangeOptions = new ActiproSoftware.Text.Implementation.TextChangeOptions();
txtChangeOptions.RetainSelection = true;
_Editor.Document.DeleteText(ActiproSoftware.Text.TextChangeTypes.Delete, 0, 100, txtChangeOptions);
What can i do to prevent thumb from moving when i am using Document.DeleteText()?
Thanks in advance
[Modified at 08/11/2010 08:29 AM]
SyntaxEditor 9.2.515.0
When text is being deleted with Document.DeleteText() the Track's Thumb is jumping to beginning of the document.
But if i use Document.AppendText(), Thumb does not move.
this is my code:
var txtChangeOptions = new ActiproSoftware.Text.Implementation.TextChangeOptions();
txtChangeOptions.RetainSelection = true;
_Editor.Document.AppendText(ActiproSoftware.Text.TextChangeTypes.Typing, "........", txtChangeOptions);
var txtChangeOptions = new ActiproSoftware.Text.Implementation.TextChangeOptions();
txtChangeOptions.RetainSelection = true;
_Editor.Document.DeleteText(ActiproSoftware.Text.TextChangeTypes.Delete, 0, 100, txtChangeOptions);
What can i do to prevent thumb from moving when i am using Document.DeleteText()?
Thanks in advance
[Modified at 08/11/2010 08:29 AM]