How do you programatically change a document?
Joined: 24 Nov 2008
Topic: How do you programatically change a document?
Posted: 24 Nov 2008 at 7:39am
I am looking at using the XF Editor in a C# Windows Forms project to perform some drag and drop actions amongst other things. I have become stuck so hope that somebody can help. My problems are:-
1. Can you find and move the location of the caret or edit a selection, programmatically?
MoveCaretEnd and MoveCaretHome are not sufficient. I would like to be able to change the selection based on where the user clicks so that a paragraph is highlighted with one click. I need something like a selection/caret position property and set selection method.
2. Can you handle mouse events within the document?
The Mouse events are only fired from the container control and not the actual document area. When you click on a document none of the mouse events fire, you have to be over the "border" of the control to raise the events. The same is true of the drag and drop events.
|Forum Jump||Forum Permissions
You cannot reply to topics in this forum
You cannot delete your posts in this forum
You cannot edit your posts in this forum
You cannot create polls in this forum
You cannot vote in polls in this forum