Article View: comp.sys.mac
Article #42216Help needed with code for COPYing
From: Ameet Bhansali
Date: Tue, 09 May 1989 22:50
Date: Tue, 09 May 1989 22:50
23 lines
1338 bytes
1338 bytes
I have been trying to write code in Turbo Pascal which would COPY a QuickDraw picture into the desk scrap (so that it could then be PASTEd into any other application). My QuickDraw picture consists of simple MoveTo and LineTo commands. I have tried calling the function PutScrap, but this just does not work. The exact syntax I have used is as follows: MyLongint:=Longint(MyPicture^^.picSize); MyScrap:=PutScrap(MyLongint,'PICT',@MyPicture); where MyPicture is the QuickDraw picture I am trying to COPY. The QuickDraw picture itself seems to be okay, since I am able to reproduce it by a single call to the procedure DrawPicture. Inside Macintosh (Vol I) makes this look pretty straightforward, but I just cannot seem to get this to work. Does anyone have any pointers (no puns intended!) as to what might be my problem? Thanks in advance. Ameet Bhansali (ameet@portia.stanford.edu)
Technical Details
Message-ID:
<2163@Portia.Stanford.EDU>Path:
arc1-ca.pugleaf.net!utzoo!utgpu!jarvis.csri.toronto.edu!mailrus!ames!oliveb!apple!shelby!Portia!ameetShow Full Headers
Complete Article Headers
Path: arc1-ca.pugleaf.net!utzoo!utgpu!jarvis.csri.toronto.edu!mailrus!ames!oliveb!apple!shelby!Portia!ameet From: ameet@Portia.Stanford.EDU (Ameet Bhansali) Newsgroups: comp.sys.mac,su.macintosh Subject: Help needed with code for COPYing Keywords: COPY, PASTE, Scrap Message-ID: <2163@Portia.Stanford.EDU> Date: 9 May 89 22:50:36 GMT Sender: Ameet Bhansali <ameet@Portia.stanford.edu> Organization: Stanford University Lines: 23