OpenOffice.org Forum at OOoForum.orgThe OpenOffice.org Forum
 
 [Home]   [FAQ]   [Search]   [Memberlist]   [Usergroups]   [Register
 [Profile]   [Log in to check your private messages]   [Log in

XEnhancedMouse Problems

 
Post new topic   Reply to topic    OOoForum.org Forum Index -> OpenOffice.org Macros and API
View previous topic :: View next topic  
Author Message
L. Esswood
Newbie
Newbie


Joined: 25 Jul 2012
Posts: 1

PostPosted: Wed Jul 25, 2012 3:38 pm    Post subject: XEnhancedMouse Problems Reply with quote

The mouseReleased event seems to be consuming the event - no matter what I do.

After wrestling with this for hours - I took all of the functionality out of my macro and found that even a pretty much blank function still consumes the event

Any obvious problems? Thanks in advance.

Code:
Option Explicit

Global DocView As Variant
Global MouseClickHandler As Variant

Sub startClicker
     DocView = ThisComponent.currentController
     MouseClickHandler = _
     createUnoListener("mouseEvent_", "com.sun.star.awt.XEnhancedMouseClickHandler")
    DocView.addEnhancedMouseClickHandler(MouseClickHandler)
End Sub

Sub unregisterEvent
     DocView.removeEnhancedMouseClickHandler(MouseClickHandler)
End Sub

Sub MyApp_disposing(oEvt)
   unregisterEvent()
End Sub

Function mouseEvent_mousePressed(oEvt) As Boolean
     mouseEvent_mousePressed = False
End Function

Function mouseEvent_mouseReleased(oEvt) As Boolean
   Print "Entered Function"
   mouseEvent_mouseReleased = False
End Function
Back to top
View user's profile Send private message
Display posts from previous:   
Post new topic   Reply to topic    OOoForum.org Forum Index -> OpenOffice.org Macros and API All times are GMT - 8 Hours
Page 1 of 1

 
Jump to:  
You cannot post new topics in this forum
You cannot reply to topics in this forum
You cannot edit your posts in this forum
You cannot delete your posts in this forum
You cannot vote in polls in this forum


Powered by phpBB © 2001, 2005 phpBB Group