From mboxrd@z Thu Jan 1 00:00:00 1970 X-Spam-Checker-Version: SpamAssassin 3.4.4 (2020-01-24) on polar.synack.me X-Spam-Level: X-Spam-Status: No, score=-1.9 required=5.0 tests=BAYES_00 autolearn=ham autolearn_force=no version=3.4.4 X-Google-Language: ENGLISH,ASCII-7-bit X-Google-Thread: 103376,c6c95d1192025df2 X-Google-Attributes: gid103376,public X-Google-ArrivalTime: 2001-02-23 23:37:49 PST Path: supernews.google.com!sn-xit-02!supernews.com!nntp-relay.ihug.net!ihug.co.nz!news-hog.berkeley.edu!ucberkeley!enews.sgi.com!newshub2.rdc1.sfba.home.com!news.home.com!news1.frmt1.sfba.home.com.POSTED!not-for-mail From: tmoran@acm.org Newsgroups: comp.lang.ada Subject: Re: Claw & Bitmaps References: <976mph$l2m$1@bw107zhb.bluewin.ch> X-Newsreader: Tom's custom newsreader Message-ID: Date: Sat, 24 Feb 2001 07:37:48 GMT NNTP-Posting-Host: 24.20.190.201 X-Complaints-To: abuse@home.net X-Trace: news1.frmt1.sfba.home.com 983000268 24.20.190.201 (Fri, 23 Feb 2001 23:37:48 PST) NNTP-Posting-Date: Fri, 23 Feb 2001 23:37:48 PST Organization: Excite@Home - The Leader in Broadband http://home.com/faster Xref: supernews.google.com comp.lang.ada:5503 Date: 2001-02-24T07:37:48+00:00 List-Id: >there's always this parameter On_Canvas of type Root_Canvas_Type'Class, You don't just draw things in Windows. You have to wait to be asked. Create a window type, overiding When_Draw, then open a window of that type. Your When_Draw routine will be called whenever the window needs to be drawn. Notice the Basic_Canvas_Type'class parameter. That's what you pass, along with your bitmap, to Copy_To_Canvas to actually make the bitmap show up on the CRT. Similarly for Set_Pixel. Think of the window as glass, and the canvas as the actual surface behind the glass that has the picture.