The MASM Forum Archive 2004 to 2012

General Forums => The Campus => Topic started by: timertik on April 05, 2007, 02:33:41 AM

Title: drag & drop links?
Post by: timertik on April 05, 2007, 02:33:41 AM
can someone tell me how to use drag and drop for URL's  like in firefox i can drag a link and drop it and it is opened as a webpage..
I also need help removing the "http://" part from the beginning and leaving the rest in place.
I have been having trouble with this for as long as i can remember.

as always all help and suggestion's are appreciated.
Title: Re: drag & drop links?
Post by: Tedd on April 05, 2007, 05:57:53 PM
Well the latter is pretty simple, you can either add 7 to your pointer - after checking it actually is "http://" (and remember that the string still really starts 7 characters back, at least for the purposes of cleaning up); or you can just copy the rest of the string backwards 7 characters, until the end.

Drag and drop should be handled by the parent control of wherever the url object is appearing, so you'll need to get it to start the drag operation (hopefully there's a ??N_BEGINDRAG message for you to use.) If that parent control is actually yours, you're in for some fun :bdg