Dear all,

 

Using the class ….

 

class MovingArc(FC.Arc, MovingObjectMixin, ConnectorObjectMixin):

                    pass

 

initialising a curve from a button click event like this …

 

                   def OnInitCurve(self,event):

                        print 'Initialising a curve'

                        self.mode.state = "OTS"

                        A = MovingArc((5, 5),(10,10),(5, 10),
LineColor="Red")

                        self.Canvas.AddObject(A)     

                        A.Bind(FC.EVT_FC_LEFT_DOWN, self.Client.FCObjectHit)

                        self.Canvas.ZoomToBB()    

                        self.Canvas.Refresh()    

 

… as per the ‘moving elements’ demo, the curve draws OK but on the drag and
drop 

the canvas doesn’t refresh the position of the curve.  However, it does
correctly 

show the new position of the curves drag box (is this what is referred to as
the  Bounding 

box ??).   Clicking on the curve the drag box picks up from the position it
was dragged to 

bur the curve is still positioned at the location where it was first drawn.

 

Odd one this.  Thoughts anyone??

 

Cheers

 

David


No virus found in this outgoing message.
Checked by AVG Free Edition. 
Version: 7.5.503 / Virus Database: 269.17.1/1183 - Release Date: 13/12/2007
09:15
 
_______________________________________________
FloatCanvas mailing list
[email protected]
http://mail.mithis.com/cgi-bin/mailman/listinfo/floatcanvas

Reply via email to