Path: news.cs.au.dk!not-for-mail From: Manmathan Muthukumarapillai Newsgroups: comp.lang.beta Subject: Re: Pixmap under Windows 9x Date: 25 May 1999 09:01:41 -0000 Organization: Mjolner Informatics ApS, Denmark Lines: 83 Approved: mailtonews@cs.au.dk Distribution: world Message-ID: <19990525090141.6351.qmail@noatun.mjolner.dk> Reply-To: Manmathan Muthukumarapillai NNTP-Posting-Host: daimi.cs.au.dk X-Trace: xinwen.cs.au.dk 927622929 3719930 255.255.255.255 (25 May 1999 09:02:09 GMT) X-Complaints-To: news@cs.au.dk NNTP-Posting-Date: 25 May 1999 09:02:09 GMT Xref: news.cs.au.dk comp.lang.beta:11963 Mon, May 24, 1999 at 07:39:40PM +0200 Bastian wrote: > I have problems drawing bitmaps from a file to the screen. > To make sure that my implementation does not result any conflicts, the > demonstration file does not work either : Hello Bastian, If you are trying to run demo/guienv/ReferenceDemos/drawBitmap.bet then you have forgot the onRefresh binding, where the bitmap is drawn. obj: @windowItem (# open:: (# do (50,50) -> position; (pm.width,pm.height) -> size #); eventHandler:: (# onRefresh:: (# do graphics (# do (pm[], (0, 0), (0, 0), pm.width,pm.height) -> drawRaster *** the above line draws the bitmap. #) #); onMouseDown:: (# do drag #) *** this let you drag the bitmap. #) Sincerely, Manmathan Muthukumarapillai / Mjolner Informatics (mannan@mjolner.dk) +++++++++++++++++++ BETA information Sources ++++++++++++++++++++++++ + Mjolner Informatics | Phone: +45 8620 2000 + + Science Park Aarhus | Direct: +45 8620 2011 local 2672 + + Gustav Wieds Vej 10 | Fax: +45 8620 1222 + + DK-8000, Aarhus C, Denmark | E-mail: info@mjolner.com + + WWW : http://www.mjolner.com -and- http://www.daimi.aau.dk/~beta + + FAQ : http://www.daimi.aau.dk/~beta/FAQ News: comp.lang.beta + + News: comp.lang.beta + +++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++ > > ORIGIN '~beta/guienv/v1.6/guienv'; > INCLUDE '~beta/guienv/v1.6/graphics'; > (* This demo is an example showing how read a bitmap from a file, and > * using the graphics pattern to draw the bitmap on the screen. > *) > --- program: descriptor --- > guienv > (# pm: @pixmap; > theWindow: @window > (# eventhandler:: > (# onAboutToClose:: (# do terminate #) #); > obj: @windowItem > (# open:: > (# > do (50,50) -> position; > (pm.width,pm.height) -> size > #); > eventHandler:: > (# #) > #); > open:: > (# > do (400,400) -> size; > obj.open > #) > #) > do 'picture' -> pm.read; > theWindow.open > #) > > The picture stored in picture.bmp does not appear on the screen. > Why not ? > > (I am using Beta v4.1 with Visual C++ v4.0 under Windows 98) > > regards, > Bastian