realbasic-games
[Top] [All Lists]

Re: Layered Canvas

To: "REALbasic Games" <realbasic-games at lists dot realsoftware dot com>
Subject: Re: Layered Canvas
From: "Jonathon Bevar" <jonbevar at schallertel dot net>
Date: Tue, 9 Aug 2005 20:50:32 -0500
Delivered-to: realbasic-games at lists dot realsoftware dot com
References: <BAY104-DAV18EF4EA8029C592A5F0A12E3C70 at phx dot gbl><a06200716bf1966c0c103 at [10 dot 0 dot 1 dot 2]><BAY104-DAV165CB41F3A6934D2530A54E3C70 at phx dot gbl> <a06200718bf1971b05131 at [10 dot 0 dot 1 dot 2]>
I have found that if you set the Backdrop as to the Card Table Picture and then on the same Canvas1 control when you do a

Canvas1.Backdrop="CardTablePicture"
redim.shapes(0) // This will only clear the Cards on the table and not the TABLE Picture.

instead of a

redim.shapes(-1) // This will clear ALL of the graphics on the screen, Table Picture and Cards alike

This is if you are using 2DObject drawing on the Canvas1

Jonathon

----- Original Message ----- From: "Joseph J. Strout" <joe at realsoftware dot com>
To: "REALbasic Games" <realbasic-games at lists dot realsoftware dot com>
Sent: Friday, August 05, 2005 2:43 PM
Subject: Re: Layered Canvas


At 12:29 PM -0700 8/5/05, Scott Kraemer wrote:

Thanks for your advice. I have moved most of the controls off the canvas, to the bottom portion of the window. Since I am drawing a poker table, and There will be a lot of action on the poker table itself, am I using the wrong control?

No, Canvas is the right control -- it's just layering canvases on top of canvases that sounds like a problem to me.

Should I be drawing a Sprite surface instead of a canvas, and putting that graphic as background, then putting sprites on and off the table at will?

Well, you could, if you don't need translucency. It might make the coding easier. But it's certainly nothing that can't be done with a Canvas.

Best,
- Joe

--
Joe Strout                          REAL Software, Inc.

Vote for REALbasic (twice!) in the LinuxWorld Reader's Choice Awards:
http://linux.sys-con.com/general/readerschoice.htm
_______________________________________________
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>


--
No virus found in this incoming message.
Checked by AVG Anti-Virus.
Version: 7.0.338 / Virus Database: 267.10.1/64 - Release Date: 8/4/2005





--
No virus found in this outgoing message.
Checked by AVG Anti-Virus.
Version: 7.0.338 / Virus Database: 267.10.4/66 - Release Date: 8/9/2005

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

<Prev in Thread] Current Thread [Next in Thread>