Your Privacy Matters: We use our own and third-party cookies to improve your experience on our website. By continuing to use the website we understand that you accept their use. Cookie Policy
2945
UltraFormattedTextEditor - Drag/Drop problems
posted

I am trying to implement Drag/Drop in an UltraFormattedTextEditor, so I can a) copy or move text into the control from another application or window, b) move text about within the editor, c) copy text in the editor, and d) move or copy text out of the control.

I have created a sample application.  This creates a fake selection whilst the user is dragging inside the editor.  However, for some reason upon dropping, the mouse button seems to get "stuck" down, and I can't see any reason for this.  In addition, the editor seems to be ignoring the selections I am trying to give it, and is selecting text on it's own.

Can anyone see what I'm doing wrong? (or perhaps it's another bug with the editor!)

Thanks,
Campbell

PS.  Is there no way to do this natively?  I think the RichTextBox does, so I'm surprised it's not a built in option.

FormattedTextEditorProblems.zip