Thanks for getting back to me Stef ... It turns out that the dxy parameter I was passing back was a delta, not an absolute. Having just realised that, all is well.
It's been a long day :-) I should have picked that one up sooner though. Cheers. David -----Original Message----- From: Stef Mientki [mailto:[EMAIL PROTECTED] Sent: 16 December 2007 23:06 To: [EMAIL PROTECTED]; Mailing List for the wxPython Float Canvas. Subject: Re: [fc] Reading across bwteen coordinate systems. > > > My DL (DrawingList) class handles canvas redraw using any revised > > object information passed through the properties dictionary. > > > > In the above case there will be new XY information sent for the move. > > > > My problem is that when I place ‘dxy’ back into [‘XY’] I have a > coordinate > > inconsistency. When the newly dropped object is redrawn it doesn’t come > > up where it should. I was sort of hoping that it would. So my > question is … > > > > Can you enlighten me on the relationship between the ‘dxy’ and the > > FloatCanvas generating XY? > > > > Alternatively, is there an offset depending on the item that is being > moved that > > I need to be aware of? > > > Sorry I don't know floatcanvas (yet), but found a similar problem in another drawing package and solved it. It has to that when a drag is started (and moves fast), the first dx,dy is lost. # ************************************ # When drawing a new connection line, # it takes a while to create the connection line, # so when moving the cursor fast, # drawing with delta-x, delta-y is not sufficient # so here positioning to the absolute cursor position is done # ************************************ cheers, Stef No virus found in this incoming message. Checked by AVG Free Edition. Version: 7.5.503 / Virus Database: 269.17.2/1185 - Release Date: 15/12/2007 12:00 No virus found in this outgoing message. Checked by AVG Free Edition. Version: 7.5.503 / Virus Database: 269.17.2/1185 - Release Date: 15/12/2007 12:00 _______________________________________________ FloatCanvas mailing list [email protected] http://mail.mithis.com/cgi-bin/mailman/listinfo/floatcanvas
