home *** CD-ROM | disk | FTP | other *** search
- Path: sparky!uunet!elroy.jpl.nasa.gov!nntp-server.caltech.edu!hacker
- From: hacker@cco.caltech.edu (Jonathan Bruce Hacker)
- Newsgroups: comp.os.os2.misc
- Subject: Re: Random Problems and some Qs
- Date: 22 Nov 1992 02:32:45 GMT
- Organization: California Institute of Technology, Pasadena
- Lines: 39
- Message-ID: <1emrgdINN6nd@gap.caltech.edu>
- References: <1992Nov17.184436.5499@news.acns.nwu.edu> <BUHR.92Nov21194026@ccu.umanitoba.ca>
- NNTP-Posting-Host: punisher.caltech.edu
-
- buhr@umanitoba.ca (Kevin Andrew Buhr) writes:
-
- >> How can I add drag-and-drop functionality to a program object? Such as, I
- >> have a document that I want to open in Word Perfect. I want to just grab
- >> the file and drag it onto the WP program object and have WP start up with
- >> the file as an argument.
-
- >The Workplace Shell provides drag-and-drop support for all non-OS/2
- >programs that support datafile names on the command line. Try
- >dragging a WordPerfect file to the program object. It should work
- >automatically.
-
- You need to have %* in the parameters line in the object's settings
- notebook. Read the online help for the parameter line, there's
- alot of other features for the parameter line as well.
-
-
- >> Can I also add drag-and-drop-and-query functionality in order to have
- >> something like an UNZIP.EXE program object and drag a zip file onto the
- >> unzip object and have the system query for the working directory (the place
- >> it will hopefully unzip the zipfile into). I know I can eliminate the drag
- >> and drop portion of this by making .zip a special extension.
-
- >Your best bet is to make a REXX script that prompts for a working
- >directory and then runs UNZIP on its parameter. If you create a
- >program object that points to this script, dragging the ZIP file to it
- >will run your script in an OS/2 window.
-
- you can have wildcards on the parameter line that are filled in
- at run time by using square brackets eg [working directory?]
- will pop up a window when you start the application and ask
- you for 'working directory?'. Your response will then
- be inserted in the command line at the position of the square
- brackets.
-
- --
- Jon Hacker
- Caltech, Pasadena CA
- hacker@tumbler-ridge.caltech.edu
-