Path: utzoo!utgpu!news-server.csri.toronto.edu!cs.utexas.edu!usc!rpi!think.com!spool.mu.edu!munnari.oz.au!uniwa!bilby.cs.uwa.oz.au!rana From: rana@cs.uwa.oz.au (Ranadeva Peries) Newsgroups: comp.windows.interviews Subject: Drawing on a Canvas Summary: How to Draw on Canvas using Painter Keywords: Draw Canvas Lines Painter Message-ID: Date: 22 May 91 07:33:53 GMT Sender: news@bilby.cs.uwa.oz.au Organization: Dept. Computer Science, University of Western Australia. Lines: 18 I need to write a program that draws simple objects (lines, circles etc) on a Canvas. I have been attempting this using a Painter. However, I can't find the connection between the Painter and a Canvas. Could someone give me some code that draws a line on a canvas using a Painter. What am I doing wrong ? I am using IV 2.6 with g++ under SunOS 4.1.1. Mail your responses directly to me: _________________________________________________________________________ Ranadeva Peries (Rana) | Internet: rana@cs.uwa.oz.au Unix Programmer | Department of Computer Science | The University of Western Australia | Nedlands 6009, | Tel: +61-9-3802878 W. Australia. | FAX: +61-9-3821688 _________________________________________________________________________