trichview.com

trichview.support




Re: Dragging of pictures/controls


Return to index


Author

Message

Sergey Tkachenko

Posted: 02/13/2002 14:54:54


> I would like to add the ability to my editor for the user to be able to

drag

> a picture to another caret position using the mouse. Any suggestions ? How

> do I set the position of an existing image in the document from within the

> program ? I would also need to know how to determine the closest caret

position

> to the mouse pointer. These are my main problems right now. (Ultimately

the

> same must be done with controls that have been inserted)


This demo shows how to drop external TImages to editor:

http://www.trichview.com/support/files/drag.zip

This demo shows how to position caret under the mouse pointer.

But real DnD is not yet implemented.


>

> I would also like to know how to position the cursor at the beginning of

> the current line from within the program. (This is to place new bullets at

> the beginning of the line) Is this possible ?


You can iterate through items from the current one to the first that returns

IsParaStart = True, then use SetSelectionBounds to move the caret.

But it's better to wait - bullets is my current work.







Powered by ABC Amber Outlook Express Converter