home *** CD-ROM | disk | FTP | other *** search
- Newsgroups: comp.lang.smalltalk
- Path: sparky!uunet!mcsun!Germany.EU.net!ira.uka.de!rz.uni-karlsruhe.de!wiormac5.wiwi.uni-karlsruhe.de!geidel
- From: Joachim Geidel <geidel@wior360.wiwi.uni-karlsruhe.de>
- Subject: OW\ST R4.1 Patch for Pixmap class>>fromClipboardOn:
- Message-ID: <1992Nov20.164925.16351@rz.uni-karlsruhe.de>
- X-Xxmessage-Id: <A732D5BD10017B07@wiormac5.wiwi.uni-karlsruhe.de>
- X-Xxdate: Fri, 20 Nov 92 16: 49:49 GMT
- Sender: usenet@rz.uni-karlsruhe.de (USENET 'No news is bad news' News System)
- Organization: WIOR, Universitaet Karlsruhe (Germany)
- X-Useragent: Nuntius v1.1.1d11
- Date: Fri, 20 Nov 1992 16:49:25 GMT
- Lines: 28
-
- "The code for getting a Pixmap from the clipboard in OW\ST R4.1 contains a
- call to Pixmap>>handle: which does not exist any more."
-
- 'From Objectworks\Smalltalk(R), Release 4.1 of 15 April 1992 on 19
- November 1992 at 4:11:11 pm'!
-
-
-
- !Pixmap class methodsFor: 'instance creation'!
-
- fromClipboardOn: aScreen
- "Answer a new Pixmap which is a copy of the
- platform's graphics clipboard. If platform is unable
- to comply with the request, answer an empty Pixmap."
-
- "ScheduledControllers activeController view graphicsContext display:
- Pixmap fromClipboard at: 0@0."
-
- | handle pixmap result aPoint |
- result := aScreen getPixmapFromClipboard.
- handle := result at: 1.
- aPoint := (result at: 2)@(result at: 3).
- "Pixmaps don't understand #handle:.
- Joachim Geidel, 92/11/19"
- "pixmap := super new handle: handle."
- pixmap := super new handleValue: [handle].
- pixmap changeExtent: aPoint.
- ^pixmap! !
-