I am using the event wx.EVT_LEFT_DOWN which fires before FC.EVT_FC_LEFT_DOWN. The latter is set whenever an object is selected on the canvas, but how do | register that the canvas itself has been clicked. That is to say, objects have been missed.
Because wx.EVT_LEFT_DOWN preceeds FC.EVT_FC_LEFT_DOWN it does not know if an object has been selected or not, and the second event ONLY fires if an item has been selected. Bit of a chicken and egg this one. The reason for my needing to do this is that I want to automatically select a canvas pan mode if only the canvas itself is selected. The only way I can think of doing this is to place a rectangle on the canvas that is the full size of the canvas. If an object on the canvas is missed the rectangle event will fire. I would rather not go with this approach if I can help it. Can anyone think of another way of achieving the desired result ?? Thanks in advance - David No virus found in this outgoing message. Checked by AVG Free Edition. Version: 7.5.516 / Virus Database: 269.17.5/1191 - Release Date: 20/12/2007 14:14
_______________________________________________ FloatCanvas mailing list [email protected] http://mail.mithis.com/cgi-bin/mailman/listinfo/floatcanvas
