Does someone know why I get continuously an error with this Basic code:
Code: Select all
Sub My_Listener
myListener=createUnoListener("MouseListener_","com.sun.star.awt.XMouseListener")
myModel= ThisComponent.DrawPages.GetByIndex(0).Forms.GetByIndex(0).GetByName("Campo di testo 1")
myModelControl= ThisComponent.CurrentController.getControl(myModel)
myModelControl.addMouseListener(myListener)
End Sub
'
Sub MouseListener_mouseEntered(oEvent)
print "Mouse has entered!"
End Sub
but in same time the message appear(from the print instruction)
Thanks to all