Level Extreme platform
Subscription
Corporate profile
Products & Services
Support
Legal
Français
Ole Drag And Drop Into TextBox
Message
General information
Forum:
Visual FoxPro
Category:
COM/DCOM and OLE Automation
Title:
Ole Drag And Drop Into TextBox
Miscellaneous
Thread ID:
01054316
Message ID:
01054316
Views:
48
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 ---
+++ Rick ---

West Wind Technologies
Maui, Hawaii

west-wind.com/
West Wind Message Board
Rick's Web Log
Markdown Monster
---
Making waves on the Web

Where do you want to surf today?
Next
Reply
Map
View

Click here to load this message in the networking platform