home *** CD-ROM | disk | FTP | other *** search
/ NetNews Usenet Archive 1992 #27 / NN_1992_27.iso / spool / comp / os / os2 / misc / 37321 < prev    next >
Encoding:
Internet Message Format  |  1992-11-21  |  2.1 KB

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