How to drag and drop ?

General Help regarding HMG, Compilation, Linking, Samples

Moderator: Rathinagiri

Ricci
Posts: 255
Joined: Thu Nov 19, 2009 2:23 pm

How to drag and drop ?

Post by Ricci »

I like to do the following: Drag a file from the Explorer to my HMG program.

I know that via "drag and drop" only the filename is transported, but that´s exactly what i want. So which control is capable to accept the "drop" ?

A very small workaround is to drop the file over the program icon on the desktop und when the program starts it can look if a parameter is given. That is not good enough, finishing and starting the programm for ever drop.


Regards from Germany ... Ricci
bootwan
Posts: 52
Joined: Thu May 27, 2010 2:33 am

Re: How to drag and drop ?

Post by bootwan »

This mode of operation is that you want?
DragDrop.zip
Ricci
Posts: 255
Joined: Thu Nov 19, 2009 2:23 pm

Re: How to drag and drop ?

Post by Ricci »

Yes, great. How did you solve it?
bootwan
Posts: 52
Joined: Thu May 27, 2010 2:33 am

Re: How to drag and drop ?

Post by bootwan »

I am not sure that HMG support it or not?
I use HMG Extended to solve it.
DragDrop-Source.zip
Ricci
Posts: 255
Joined: Thu Nov 19, 2009 2:23 pm

Re: How to drag and drop ?

Post by Ricci »

Too bad, but HMG did not support the "ON DROPFILES" command at windows definition.

But it would be useful to get it in the future.
User avatar
Alex Gustow
Posts: 290
Joined: Thu Dec 04, 2008 1:05 pm
Location: Yekaterinburg, Russia
Contact:

Re: How to drag and drop ?

Post by Alex Gustow »

Hi Bootwan again - and thanks to "finger-pointing" (I use HMG Ext - but I forget about this sample :) ).

I hope - in near future we'll have one, common-maded thing (when Roberto and Grigory joined "HMG Original" and "HMG Extended" to one simple "HMG") - and "fork war" will be over. :lol:

Do you remember this?.. "Make Love Not War!" \/

:) Look at funny t-shirt image by Paul Burgess
http://www.threadless.com/product/1167/ ... ve_Not_War
bootwan
Posts: 52
Joined: Thu May 27, 2010 2:33 am

Re: How to drag and drop ?

Post by bootwan »

:o
Last edited by bootwan on Sat Aug 07, 2010 11:32 am, edited 2 times in total.
User avatar
sudip
Posts: 1454
Joined: Sat Mar 07, 2009 11:52 am
Location: Kolkata, WB, India

Re: How to drag and drop ?

Post by sudip »

Hello Bootwan,

Welcome back. :)

I am a very ordinary student of HMG (and other software tools). I like your sample. You are a very good programmer.

Currently, HMG doesn't have this feature. If you like, you may post this in "Wish List" section of HMGForum. Please don't take my comments otherwise.
With best regards,
Sudip
bootwan
Posts: 52
Joined: Thu May 27, 2010 2:33 am

Re: How to drag and drop ?

Post by bootwan »

Thank you sudip I would like to avoid the wrong things or typo, I better shut up!
Last edited by bootwan on Sat Aug 07, 2010 11:33 am, edited 1 time in total.
User avatar
apais
Posts: 440
Joined: Fri Aug 01, 2008 6:03 pm
DBs Used: DBF
Location: uruguay
Contact:

Re: How to drag and drop ?

Post by apais »

finger pointing = call for your attention on a subject

Maybe a native English speaker can make a better one !
Angel Pais
Web Apps consultant/architect/developer.
Post Reply