Path: news.cs.au.dk!not-for-mail From: "Sascha Kimmel" Newsgroups: comp.lang.beta Subject: RE: Pixmap under Windows 9x Date: 25 May 1999 08:13:52 -0000 Organization: University of Aarhus, Department of Computer Science (DAIMI) Lines: 35 Approved: mailtonews@cs.au.dk Distribution: world Message-ID: <19990525081352.5850.qmail@noatun.mjolner.dk> Reply-To: "Sascha Kimmel" NNTP-Posting-Host: daimi.cs.au.dk X-Trace: xinwen.cs.au.dk 927620063 3710061 255.255.255.255 (25 May 1999 08:14:23 GMT) X-Complaints-To: news@cs.au.dk NNTP-Posting-Date: 25 May 1999 08:14:23 GMT Xref: news.cs.au.dk comp.lang.beta:11962 Hi! > obj: @windowItem > (# open:: > (# > do (50,50) -> position; > (pm.width,pm.height) -> size > #); > eventHandler:: > (# #) > #); > open:: At first you should add the following code to the eventHandler so that the graphic gets refreshed any time the surrounding object is refreshed: onRefresh::(# do graphics (# do (pm[],(0,0),(0,0), pm.width,pm.height)->drawRaster #); #); > do 'picture' -> pm.read; > theWindow.open > #) > > The picture stored in picture.bmp does not appear on the screen. > Why not ? Did you try 'picture.bmp'->pm.read instead? :) It should work then. Regards, Sascha Kimmel kimmel@tricos.com (send SPAM and you will lose your e-mail account ;)