![]() |
||
| Home | SwiftForth Archive | SwiftX Archive | |

Maybe I'm misunderstanding you, but the method used by Swiftforth
could easily be adapted to any program with a window. Here is a
simple example:
-----------------------------------------
REQUIRES WIN1 \ Simple Framework
: DROPPED ( -- )
( next line is optional )
HWND SetForegroundWindow DROP ( <<< if we want to be seen )
WPARAM 0 PAD 255 DragQueryFile DROP
HWND PAD Z" Dropped File" MB_OK MessageBox DROP ;
[+SWITCH APP-MESSAGES
WM_CREATE RUN: ( -- res ) HWND 1 DragAcceptFiles 0 ;
WM_DESTROY RUN: ( -- res ) HWND 0 DragAcceptFiles
APP-DESTROY ( from Win1.F ) ;
WM_DROPFILES RUN: ( -- res ) DROPPED WPARAM DragFinish 0 ;
SWITCH]
-----------------------------------------
Hope this helps,
Mike
-----Original Message-----
From: sftalk-bounce_at_forth.com [mailto:sftalk-bounce_at_forth.com]On
Behalf
Of Roger Dube
Sent: Monday, December 15, 2003 3:49 AM
To: sftalk_at_forth.com
Subject: [sftalk] Re: drag and drop
Dropping a file onto an SF session for inclusion is quite different
than
what I need - I want to create a turnkey that can be distributed, onto
which
I can drag and drop a file for handling... The question is, when the
file is
dropped onto the turnkey, can any parameters be passed, such as
filename, so
that the exe can handle tasks on the file?
- Roger
----- Original Message -----
From: "Mike Ghan" <mikeghan_at_logix-controls.com>
To: <sftalk_at_forth.com>
Sent: Sunday, December 14, 2003 11:31 PM
Subject: [sftalk] Re: drag and drop
> Actually, SwiftForth itself supports drag and drop. Drag a file to
> the console window and it will be INCLUDEd. See DragDrop.F
>
> Mike
>
> -----Original Message-----
> From: sftalk-bounce_at_forth.com [mailto:sftalk-bounce_at_forth.com]On
> Behalf
> Of Roger Dube
> Sent: Sunday, December 14, 2003 6:01 PM
> To: sftalk_at_forth.com
> Subject: [sftalk] drag and drop
>
>
> I would like to drag a file onto a turnkey that I create using SF,
and
> then have the turnkey proceed to act upon the file... open it, do
> things to it, etc.
> Does anyone have advice on how to accomplish this? I am not sure
what
> the EXE "sees" when a file is dropped onto it, nor how I can access
> the filespec, for example. If someone has an example of a simple
> application that works that way, I could probably figure it out from
> there.
>
> Suggestions would be much appreciated.
>
> - Roger
> --------------------------------------------------------------------
-- > Dr. Roger Dube > > RogerDube_at_datHQ.com > President/CEO > Digital Authentication Technologies, Inc. > http://www.datHQ.com/ > TEL +1.561.392.7404 > FAX +1.561.892.2474 > > PO Box 811564 > Boca Raton, FL 33481-1564 ---------------------------------------------------------------------- sftalk_at_forth.com The SwiftForth programming discussion email list To unsubscribe, send subject "unsubscribe" to sftalk-request_at_forth.com For list command help, send subject "help" to sftalk-request_at_forth.com Message archives are located at http://www.forth.com/archive/sftalk ---------------------------------------------------------------------- This list is a forum for SwiftForth users. For product support and bug reports, please send email to support_at_forth.com ----------------------------------------------------------------------Received on Mon Dec 15 2003 - 07:04:27 PST
This archive was generated by hypermail 2.2.0 : Wed Nov 19 2008 - 03:04:21 PST