I need a little help with Ole D&D in a Fox form that needs to embed a marked up file string into a textbox. Scenario is this:
User drags a file from Explorer into my textbox
File is expanded into an HTML Img tag on drop
I can get the filename and translate it properly using standard OleDrag Drop (OleDragOver to activate, then capture the oDataOjbect in OleDragOver).
Problem is I can't figure out how to drop the data into the text control at the drag and drop cursor position. I have hte text, but how do I get the cursor position or how do I make the Drag and Drop operation automatically drop it there?
What I need is a way to either calculate the cursor position inside of the textbox, or be able to modify the content of the data object so that Fox can automaitcally drop the new text value I've written to it. Problem is the latter also doesn't seem to work as I can't seem to write to the Data object in any of the methods like OleDragDrop.
Anybody have any ideas on how to do this?
+++ Rick ---