List Info

Thread: mouseMotionListener




mouseMotionListener
user name
2006-11-17 18:45:52
Hi all,

I am developping an addon for Draw that add functions to use
it as a 
ligth CAD software.
It worked with OO.o 1.1.5 using mouseMotionListener to do
interactive 
drawing, but with 2.0.x the api changed, for example the
XWindow 
interface of the DrawingDocumentDrawView service became
optionnal.

I tried the folowing python code :
        self.aComponentWindow =
self.aController.Frame.ComponentWindow
        self.aContainerWindow = 
self.aController.Frame.ContainerWindow                   

        self.aComponentWindow.addMouseMotionListener(self)
        for w in self.aComponentWindow.Windows:
            w.addMouseMotionListener(self)
        self.aContainerWindow.addMouseMotionListener(self)
        for w in self.aContainerWindow.Windows:
            w.addMouseMotionListener(self)

Some of that windows gives an answer, but the interesting
one does not.

Is it anymore impossible to register mouseMotionListener at
a main window ?

Thanks,
Gerard

------------------------------------------------------------
---------
To unsubscribe, e-mail: dev-unsubscribeapi.openoffice.org
For additional commands, e-mail: dev-helpapi.openoffice.org

[1]

about | contact  Other archives ( Real Estate discussion Medical topics )