Hi Tim, I am currently getting round this by adding a z order property to each item on the canvas. For this to work you need to keep your own copy of what is on the canvas and do a sort on the z order property of your list prior to any redraw.
David. > -----Original Message----- > From: [EMAIL PROTECTED] [mailto:floatcanvas- > [EMAIL PROTECTED] On Behalf Of Tim Ansell > Sent: 12 January 2008 13:20 > To: Mailing List for the wxPython Float Canvas. > Subject: [fc] Layers in wxFloatCanvas > > Hello, > > I have run into a problem when using wxFloatCanvas and am unsure of the > best way to solve it. > > I need a group of objects to always draw behind another group of > objects. What I effectively need are layers. Previously, I had be faking > this by making sure I added them to FloatCanvas in order. > > I have finally hit the limit of this approach, as I now need to add and > remove objects from the bottom layer. > > This seems to be similar to the Foreground/Background stuff - I > effectively need multiple Foregroup layers. > > I don't really have time to hack wxFloatCanvas to add proper layer > support, any suggestions? > > Thanks for your help. > > Tim 'Mithro' Ansell > > _______________________________________________ > FloatCanvas mailing list > [email protected] > http://mail.mithis.com/cgi-bin/mailman/listinfo/floatcanvas > > No virus found in this incoming message. > Checked by AVG Free Edition. > Version: 7.5.516 / Virus Database: 269.19.1/1220 - Release Date: > 11/01/2008 18:09 > No virus found in this outgoing message. Checked by AVG Free Edition. Version: 7.5.516 / Virus Database: 269.19.1/1220 - Release Date: 11/01/2008 18:09 _______________________________________________ FloatCanvas mailing list [email protected] http://mail.mithis.com/cgi-bin/mailman/listinfo/floatcanvas
