I hope to to drag a text string and its hyperlink from an HTML page to a TEdit.
For example
displays aaa
actual string is <a href=somewhere.html>aaa</a>
I try to use drag&drop vcl, but found that it only can catch aaa itself rather than the string and its hyperlink.
Welcome any comment
Thanks
interdev
Go download Anders Melander’s free Drag and Drop Component Suite. In it you’ll find
TDropURLTargetto put on your form. Set itsTargetproperty to refer to yourTEditcontrol, and when a URL is dropped there, the component’sURLandTitleproperties will be updated so you can inspect them during theOnDropevent handler. The suite comes with several examples; TargetDemo has the basics.