Clipboard... always clipboard

From: Hector <"Hector">
Date: Mon, 11 Nov 2002 15:28:44 +0100

Thank you for your answer, Renee, but I'm afraid I haven't explained myself very well, becasuse it isn't what I was looking for. I'm afraid you have thought that I'm working with a Text View, and what I copy and paste are characters, but it isn't that. I'm working with geometric figures.

 

So, I don't want to link the HostCmds. PasteGuard to my Edit menu. I want to be able to "transform" that PasteGuard for recognising when a figure has been copied to my clipboard (and I said my clipboard, because I have implemented it in my Views module). I mean, I don't use any System clipboard or something like that (anyway, I don't know if I could use any) because I made one on my own.

 

I have decided that, at least, I'd like to enable the Paste option. I don't mind if it is activated even when nothing is in the clipboard, because the big problem I have now is that if I open the BlackBox, and I start working with my figures, the Paste option is always disabled. I have discovered that the only way to activate it is writing something in the Log window, selecting it, and copying it. Doing that, the "Paste" option becomes active, so I can copy and paste my figures perfectly. But if I don't do that trick, I can copy my figures, but I can't paste them. But, as I said, if I copy a piece (I don't mind what) of text, the paste option becomes active, and I can copy and paste every figure I want. What do I have to do?. Do I have to implement my own Edit menu?. Do I have to re-write the HostCmds.PasteGuard method?. I tried to do something like:

 

IMPORT HostCmds, . ;

 

PROCEDURE PasteGuard (VAR par: Dialog. Par);

BEGÍN

         par. disabled := FALSE;

END PasteGuard;

 

Hoping that doing that, the "Paste" option would become always active, but it didn't work. :-(

 

Thank you in advance, HECTOR.

 

PS:

Could anybody write something easy to answer??. I am feeling very badly because I can't answer any of the expounded questions I receipt in my mail, so, the only thing I do is asking and asking.






Received on Mon Nov 11 2002 - 15:28:44 UTC

This archive was generated by hypermail 2.3.0 : Thu Sep 26 2013 - 06:29:33 UTC