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 » Tue Jul 06, 2010 11:47 am

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

Post by bootwan » Tue Jul 06, 2010 3:23 pm

This mode of operation is that you want?
DragDrop.zip

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

Post by Ricci » Tue Jul 06, 2010 3:29 pm

Yes, great. How did you solve it?

bootwan
Posts: 52
Joined: Thu May 27, 2010 2:33 am

Post by bootwan » Tue Jul 06, 2010 3:41 pm

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

Post by Ricci » Tue Jul 06, 2010 3:53 pm

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:

Post by Alex Gustow » Tue Jul 06, 2010 4:46 pm

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

Post by bootwan » Wed Jul 07, 2010 2:27 am

:o
Last edited by bootwan on Sat Aug 07, 2010 11:32 am, edited 2 times in total.

User avatar
sudip
Posts: 1444
Joined: Sat Mar 07, 2009 11:52 am
Location: Kolkata, WB, India
Has thanked: 4 times

Post by sudip » Wed Jul 07, 2010 9:59 am

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

Post by bootwan » Wed Jul 07, 2010 2:40 pm

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: 286
Joined: Fri Aug 01, 2008 6:03 pm
Location: uruguay
Has thanked: 36 times
Been thanked: 22 times
Contact:

Post by apais » Wed Jul 07, 2010 3:19 pm

finger pointing = call for your attention on a subject

Maybe a native English speaker can make a better one !

Post Reply