Setting the selection before display doesn't work

SyntaxEditor for WPF Forum

Posted 15 years ago by Gustavo Guerra
Version: 9.1.0503
Platform: .NET 3.5
Environment: Windows Vista (64-bit)
Avatar
If I set the ActiveView.Selection.StartOffset & the ActiveView.Selection.EndOffset before showing the window that contains the SyntaxEditor, the selection is ignored. Setting the text works, though. Is there any other way to set the selection that could work?

Best Regards,
Gustavo Guerra

Comments (2)

Posted 15 years ago by Actipro Software Support - Cleveland, OH, USA
Avatar
Gustavo,

Selection changes are never ignored. Either you are setting the selection to invalid offsets for the text that is currently loaded (maybe your text hasn't been loaded yet when you are changing selection), or a document text set (complete document replacement) will clear the current selection.


Actipro Software Support

Posted 15 years ago by Gustavo Guerra
Avatar
I'll send a mail with a reproducing project.

Best Regards,
Gustavo Guerra
The latest build of this product (v24.1.1) was released 2 months ago, which was after the last post in this thread.

Add Comment

Please log in to a validated account to post comments.