Re: Insert text at cursor
"Luke Young" <[email protected]>
| Newsgroups | gmane.comp.lang.delphi.programming |
|---|---|
| Message-ID | <[email protected]> |
OK I have been looking at this RichEdit, it almost does what I want, can anyone take it that final step... If you type a load of text into rich edit, then select a portion of it, holding the left mouse button down you can drag that text to a position within the RichText box. The mouse pointer snaps in between each letter and when you let go the dragged text is inserted at the cursor. I want to be able to insert text that isn't in the rich edit box at the cursor position. TIA Luke --- In [email protected], "Luke Young" <luke.young@l...> wrote: > Can anyone help? > > I want to implement a drag and drop app where text is inserted into a > memo or RichEdit box. > > But I want to insert the text where the mouse pointer is. > > The OnDragDrop give the X, Y co-ordinates but how can I convert that > into where to insert the text. > > I want to implement something similar to how the Delphi IDE works when > you are dragging text around in the editor? > > if there is a component that already does this could you let me know? > > Thanks In Advance > > Luke > > PS: I imagine this is simple but I cannot find an easy method... ------------------------ Yahoo! Groups Sponsor ---------------------~--> Inkjet cartridges up to 80% off. HP, Epson, Lexmark--we have your brand. Free shipping on every order to the U.S. and Canada! Excellent service. http://www.c1tracking.com/l.asp?cid=5510 http://us.click.yahoo.com/QWB0QC/.eUGAA/ySSFAA/i7folB/TM ---------------------------------------------------------------------~-> Delphi Tips & Tutorials... http://www.delphicollection.com --------------------------------------------------------------- Unsubscribe:[email protected] List owner:[email protected] --------------------------------------------------------------- Your use of Yahoo! Groups is subject to http://docs.yahoo.com/info/terms/