[comp.os.os2.programmer] Drag-and-Drop interface

bking@nro.cs.athabascau.ca (Barry King) (05/01/91)

d88-pfo@hemul.nada.kth.se (Peter Forsberg) writes:

> 
> The drag & drop API's are documented in IBM OS/2 Tools & Info 1.2/1.3. If 
> you have the old toolkit (1.2) you can upgrade it (maybe even for free) to 
> 1.2/1.3. I don't know if MS has any doc's on the drag & drop API's out.
> These API's all begin with 'Drg' and are documented in the on-line doc's as
> well as in print.
> --

I searched through both the IBM PT&I v1.2 and MS PM Toolkit v1.21 
documentation and found now reference to the drag and drop interface nor 
the API's...  My IBM v1.3 toolkit hasn't arrived yet.  Are you sure the 
API's are available under v1.2 or MS v1.21?  What header file are they 
in?  Which .LIB?

Barry King             ersys!bking@nro.cs.athabascau.ca
Edmonton Remote Systems:  Serving Northern Alberta since 1982

mabdoor@cs.vu.nl (Doorn van MAB) (05/02/91)

In OS/2 1.2 & 1.3 it is possible to make a program which supports the
File Manager's 'drag-and-drop'-interface.

(E.g. the Print Manager and the shareware PMZIP.)

I want to support this in my programs.

So you select one or more files in the File Manager, and then drag them to the
window or icon of your own application.

My question: How can I support this in my own PM-programs ??

Thanks,

Matthijs van Doorn

You can contact me by e-mail:   mabdoor@cs.vu.nl

Note: I can't find anything about it in the online-Programming Reference

d88-pfo@hemul.nada.kth.se (Peter Forsberg) (05/03/91)

In article <9833@star.cs.vu.nl> mabdoor@cs.vu.nl (Doorn van MAB) writes:

   In OS/2 1.2 & 1.3 it is possible to make a program which supports the
   File Manager's 'drag-and-drop'-interface.
   (E.g. the Print Manager and the shareware PMZIP.)
   I want to support this in my programs.
   So you select one or more files in the File Manager, and then drag them to the
   window or icon of your own application.
   My question: How can I support this in my own PM-programs ??

   Thanks,
   Matthijs van Doorn
   You can contact me by e-mail:   mabdoor@cs.vu.nl

   Note: I can't find anything about it in the online-Programming Reference

The drag & drop API's are documented in IBM OS/2 Tools & Info 1.2/1.3. If 
you have the old toolkit (1.2) you can upgrade it (maybe even for free) to 
1.2/1.3. I don't know if MS has any doc's on the drag & drop API's out.
These API's all begin with 'Drg' and are documented in the on-line doc's as
well as in print.
--
-- Peter A Forsberg
   Royal Institute of Technology, Stockholm, Sweden.
   IBM Sweden.
   E-mail: d88-pfo@nada.kth.se
   #include <standard.disclaimer>

larrys@watson.ibm.com (Larry Salomon, Jr.) (05/03/91)

In 1.2, the drag-n-drop protocol is unsupported/undocumented.  In 1.3,
look under the (ridiculously complex) Drg* API calls.

Cheers,
Larry Salomon, Jr. (aka 'Q')            LARRYS@YKTVMV.BITNET
OS/2 Applications and Tools             larrys@ibmman.watson.ibm.com
IBM T.J. Watson Research Center         larrys@eng.clemson.edu
Yorktown Heights, NY

Disclaimer:  The statements and/or opinions stated above are strictly my
own and do not reflect the views of my employer.  Additionally, I have a
reputation for being obnoxious, so don't take any personal attacks too
seriously.

bking@nro.cs.athabascau.ca (Barry King) (05/03/91)

larrys@watson.ibm.com (Larry Salomon, Jr.) writes:

> In 1.2, the drag-n-drop protocol is unsupported/undocumented.  In 1.3,
> look under the (ridiculously complex) Drg* API calls.
> 

Do you if there is a .h and .lib combo floating about for the Drg* 
functions?  There is a file called PMTKT which allows us to access the 
functions in PMTKT.DLL - is there something similar for the Drg 
functions ?  (Since I'm _still_ waiting for my 1.3 PT&I kit... :-) )


Barry King             ersys!bking@nro.cs.athabascau.ca
Edmonton Remote Systems:  Serving Northern Alberta since 1982

d88-pfo@dront.nada.kth.se (Peter Forsberg) (05/07/91)

In article <3iR011w164w@ersys.uucp> ersys!bking@nro.cs.athabascau.ca (Barry King) writes:
   d88-pfo@hemul.nada.kth.se (Peter Forsberg) writes:

   > 
   > The drag & drop API's are documented in IBM OS/2 Tools & Info 1.2/1.3. If 
   > you have the old toolkit (1.2) you can upgrade it (maybe even for free) to 
   > 1.2/1.3. I don't know if MS has any doc's on the drag & drop API's out.
   > These API's all begin with 'Drg' and are documented in the on-line doc's as
   > well as in print.
   > --

   I searched through both the IBM PT&I v1.2 and MS PM Toolkit v1.21 
   documentation and found now reference to the drag and drop interface nor 
   the API's...  My IBM v1.3 toolkit hasn't arrived yet.  Are you sure the 
   API's are available under v1.2 or MS v1.21?  What header file are they 
   in?  Which .LIB?

I don't have the PT&I 1.2 installed any longer, but in the 1.2/1.3 release
the headerfile with the Drg-API's is PMSTDDLG.H, and the lib to link with
is as usual OS2.LIB. (Try making a GREP for "Drg" on all header files).

   Barry King             ersys!bking@nro.cs.athabascau.ca
   Edmonton Remote Systems:  Serving Northern Alberta since 1982
--
-- Peter A Forsberg
   Royal Institute of Technology, Stockholm, Sweden.
   IBM Sweden.
   E-mail: d88-pfo@nada.kth.se
   #include <standard.disclaimer>

edg@netcom.COM (Ed Greenberg) (05/08/91)

Could somebody please explain what a "drag and drop" effect is?  Thanks.
					-edg
-- 
Ed Greenberg 		| Home: +1 408 283 0184 | edg@netcom.com
P. O. Box 28618		| Work: +1 408 764 5305 | CIS: 76703,1070
San Jose, CA  95159	| Fax:  +1 408 764 5003 | WB2GOH @ N6LDL.CA.USA

rommel@Informatik.TU-Muenchen.DE (Kai-Uwe Rommel) (05/09/91)

I have the Microsoft PM Softset 1.21. Is there a newer version that
contains headers and import libaries for the Drag-and-Drop-Interface ?

BTW, it took several *months* to upgrade to this level. Hope this will
be better with the next versions.   grr...

Thanks for any hints,
Kai Uwe Rommel

/* Kai Uwe Rommel, Munich ----- rommel@lan.informatik.tu-muenchen.dbp.de */

DOS ... is still a real mode only non-reentrant interrupt
handler, and always will be.                -Russell Williams (MS)

John McGarvey (05/16/91)

In OS2 1.2 you will find some drag-and-drop: you can drag a file to
the print manager to print it, or to (say) an editor program in the
start list to edit it, etc.  Unfortunately, this is a private protocol,
and was never published.  Some of us tried to decipher it anyway, with
only partial success.

So now 1.3 is out, with the official and very complicated, drag&drop
api's.  It must be said that this is not a finished job.  The 1.3 file
manager and program start list do not use these published API's yet,
but instead use the secret 1.2 API's.  So if you write an application
to use the new drag-and-drop (take it from me, it is not easy) your
application still won't work with 1.3 file manager.  Moreover, the
API introduces certain concepts like object types, rendering formats,
rendering mechanisms, etc., which are not really defined unless the
object is just a plain file.

I think what has been done is a good start, and the complications are
probably necessary.  But I think we will have to wait for OS2 2.0 to
make it usable for developers.

John McGarvey