mrl@alcvax.pfc.mit.edu (04/24/91)
I'm looking for code that will show me how to use the Cut & Paste routines in DECWINDOWS. I'm trying to use it for cutting and pasting plots rather than text. However, I'm having problems with them under DECWINDOWS V5.4. (I've tried to look through the fiche for the code that DEC uses to do it in their text widgets, but haven't been successful. Any ideas?) Specifically, I've found I have to manually unlock the clipboard when I shouldn't have to. Also, when passing by name, I'm having problems getting the callback routine to be called when the format is deleted. I.e. I select a plot which then gets highlighted, and I then copy by name to the clipboard. Then when a plot in another application is selected, I want to to trigger the callback in the original application so it can dehighlight the plot. I was under the impression that when a 2nd application copies by name with the same format, it will delete the previous copy, which would then trigger the callback. This doesn't always seem to occur, and I haven't figured out why. I am under the impression that you can use CANCEL COPY FORMAT accept from the application that copied it, so I assume the only other way to cause a deletion is for an application to rewrite the same format. Thanks! Mark MRL