In the end I did pan from the mousewheel and shift mouse wheel – aka Visio.
So I n o longer require an answer to this thread.  Still if anyone does know
how to go about this it may be useful for the future.

 

- David

 

   _____  

From: [EMAIL PROTECTED] [mailto:[EMAIL PROTECTED]
On Behalf Of David Poundall
Sent: 23 December 2007 22:28
To: 'Mailing List for the wxPython Float Canvas.'
Subject: [fc] How to grab the canvas ???

 

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



No virus found in this incoming message.
Checked by AVG Free Edition.
Version: 7.5.516 / Virus Database: 269.17.5/1191 - Release Date: 20/12/2007
14:14



No virus found in this outgoing message.
Checked by AVG Free Edition. 
Version: 7.5.516 / Virus Database: 269.17.9/1197 - Release Date: 25/12/2007
20:04
 
_______________________________________________
FloatCanvas mailing list
[email protected]
http://mail.mithis.com/cgi-bin/mailman/listinfo/floatcanvas

Reply via email to