The paint event fires when the canvas needs to be repainted. You could make
an array of 28 pictures and draw to those, and then in the canvas paint
event draw the correct picture. If you need to draw something on the canvas
you should first draw to the correct picture and then do
canvas.refresh(this will cause it to fire the paint event).


On 03/04/06, Paul Mathews <[EMAIL PROTECTED]> wrote:
>
> In Window1, I have a Canvas control that I'm using to build up an image of
> a
> pair of dice. I start out with the Backdrop set to a bitmap image of blank
> faces. Window1 has a Roll Event that generates the dice pair. Within the
> Roll Event, I call a Method that adds in the dice dots in the appropriate
> places. All this works great. However, now I've added a Rectangle Shape
> around the Canvas (by the way, there are 28 of each of these, but I'll
> just
> describe the behavior of 1). I've put the Shape behind the Canvas, so that
> the dice images are on top, since I want the Rectangle Shape to simply
> frame
> the dice pair. No problem yet. Now, I'd like to change the BorderColor of
> the Shape, but when I do so, the dots so carefully drawn on the die faces
> disappear.
>
> What's happening here? Am I supposed to be 'repainting' the Canvas after
> changing the Shape color? So far, I haven't put any code in any Paint
> events. Frankly, I'm confused about just when the Paint Event fires in
> this
> situation and just what I would do with it.  Any clues will be much
> appreciated.
>
> Paul Mathews
> still using RB555 on WinXP
> (but the ultimate target is Linux on Winsystems EPX SBC)
>
> _______________________________________________
> Unsubscribe or switch delivery mode:
> <http://www.realsoftware.com/support/listmanager/>
>
> Search the archives of this list here:
> <http://support.realsoftware.com/listarchives/lists.html>
>
_______________________________________________
Unsubscribe or switch delivery mode:
<http://www.realsoftware.com/support/listmanager/>

Search the archives of this list here:
<http://support.realsoftware.com/listarchives/lists.html>

Reply via email to