Path: utzoo!utgpu!news-server.csri.toronto.edu!cs.utexas.edu!wuarchive!usc!sdd.hp.com!hplabs!hpfcso!hpfcmdd!hpbbrd!hpbbn!hpcc05!hpcuhb!hpcllla!hpclisp!defaria@hpclapd.HP.COM From: defaria@hpclapd.HP.COM (Andy DeFaria) Newsgroups: comp.lang.pascal Subject: Looking for a cut/paste procedure Message-ID: <950048@hpclapd.HP.COM> Date: 2 Jan 91 18:00:16 GMT Organization: Hewlett-Packard Calif. Language Lab Lines: 16 I have been playing around with my mouse and I have gotten a mouse unit that let's me track mouse events and the like. What I'm trying to do now is implement a cut and paste procedure so that a button 1 drag will highlight text on the screen and place the text into a cut buffer. Button 2 will paste any text. This is turning out to be difficult and I would appreciate any help that I can get. One of the problems that I have is that there can be up to 2000 characters cut and TP only likes strings < 256 characters. Another problem is that currently my highlight and cut procedure isn't smart enough to be able to cut only what is highlighted and tends to cut the same character(s) multiple times. I know that given more time, debugging and coding I could work through it but I would appreciate any pointers (and/or code) to help me complete this task. Thanks in advance.