Hi Popcorn Dave,

I think we may need a bit more information here. It sounds like you want one Canvas on top of another. If the reason you want that is to have a background, it is probably a waste of time to do so with two Canvas widgets.

Canvas widgets give you the ability to specify how objects are layered on them. Specifically you would assign a Tag to an item then use the $canvas->lower() and $canvas->raise() methods to control which are drawn on top.

But the easiest thing to do is draw your background first. Then you are done unless you accidentally lower another object below it.

Hope this helps - if not post some code and myself and other monks will be sure to take a look at it. Good luck,
{NULE}
--
http://www.nule.org


In reply to Re: Multiple canvases in Tk? by {NULE}
in thread Multiple canvases in Tk? by Popcorn Dave

Title:
Use:  <p> text here (a paragraph) </p>
and:  <code> code here </code>
to format your post, it's "PerlMonks-approved HTML":



  • Posts are HTML formatted. Put <p> </p> tags around your paragraphs. Put <code> </code> tags around your code and data!
  • Titles consisting of a single word are discouraged, and in most cases are disallowed outright.
  • Read Where should I post X? if you're not absolutely sure you're posting in the right place.
  • Please read these before you post! —
  • Posts may use any of the Perl Monks Approved HTML tags:
    a, abbr, b, big, blockquote, br, caption, center, col, colgroup, dd, del, details, div, dl, dt, em, font, h1, h2, h3, h4, h5, h6, hr, i, ins, li, ol, p, pre, readmore, small, span, spoiler, strike, strong, sub, summary, sup, table, tbody, td, tfoot, th, thead, tr, tt, u, ul, wbr
  • You may need to use entities for some characters, as follows. (Exception: Within code tags, you can put the characters literally.)
            For:     Use:
    & &amp;
    < &lt;
    > &gt;
    [ &#91;
    ] &#93;
  • Link using PerlMonks shortcuts! What shortcuts can I use for linking?
  • See Writeup Formatting Tips and other pages linked from there for more info.