atlrdhs@adiron.UUCP (David H. Sargrad) (05/10/91)
We are interested in developing an application in XView which would allow us to "drag-and-drop" icons (representing files) from our applications desktop (a panel) to other panels within our application (for further processing). We already know how to capture "drag_and_load" events in order to bring files into our application from the window manager, however we want to take this one step further. We believe that to implement "drag_and_drop" capabilities from within our application we must create a "selection service client" (using "selection_create()" ), have it keep track of which icons have been selected, fill the "Seln_result" structure as needed, and lastly have it generate client messages when appropriate. These messages would then be captured as "drag_and_drop" events, in the same way that we now capture and interpret "drag_and_load" events. Though we think we are on the right track, we may be making this more complicated than it needs to be. Does anyone know how this kind of thing should actually be done? Do we indeed have to create a selection service client, and if so what is a good source of documentation, or better yet an example program, illustrating how this is done? All input would be greatly appreciated! Thanks in advance! D.H.S.