trichview.com

trichview.support




Re: TRichViewEdit, set caret at X,Y coordinates ?


Return to index


Author

Message

Stef Mientki

Posted: 07/21/2003 0:04:15




Sergey Tkachenko wrote:

> SendMessage does not make sense here, because it executes the message

> handler immediately.

Which is exactly what I need (I think).

Because I drag an object form another application,

the cursor in TRV isn't visible.

So there's nothing meaningfull I can do during DragOver.

The only action I take is on DragDrop,

then I position the cursor and insert the object (and have to make sure

the cursor is in the right position at that moment, so therefor:

SendMessage)


Stef Mientki


> PostMessage is required because it just posts the message for

> processing later.

> You can test your application dragging objects in table cells. There may be

> an exception without using PostMessage.

> What is the problem with PostMessage? It has the same syntax as

> SendMessage...

>

>

>>Thanks Sergey !

>>

>>I'm now able to drop URLs in TRichViewEdit.

>>

>>In my case "MoveCaretTo" works,

>>"Postmessage" doesn't ....

>>... but "SendMessage" works also well.

>>

>>Up to the next goal: dropping of file-links and images,

>>as soon as it works, I'll post the code.

>>

>>Stef Mientki

>>

>

>

>

>

>





Powered by ABC Amber Outlook Express Converter