comp.lang.ada
 help / color / mirror / Atom feed
From: tmoran@acm.org
Subject: Re: Claw & Bitmaps
Date: Sat, 24 Feb 2001 07:37:48 GMT
Date: 2001-02-24T07:37:48+00:00	[thread overview]
Message-ID: <gxJl6.22226$5M5.1580415@news1.frmt1.sfba.home.com> (raw)
In-Reply-To: 976mph$l2m$1@bw107zhb.bluewin.ch

>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.



  reply	other threads:[~2001-02-24  7:37 UTC|newest]

Thread overview: 4+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2001-02-23 22:02 Claw & Bitmaps Cornel Arnet
2001-02-24  7:37 ` tmoran [this message]
2001-02-24 14:51 ` tmoran
2001-02-26 20:00 ` Randy Brukardt
replies disabled

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox