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

MouseClickHandler for a Cell in Calc

 
Post new topic   Reply to topic    OOoForum.org Forum Index -> OpenOffice.org Macros and API
View previous topic :: View next topic  
Author Message
satabau
General User
General User


Joined: 12 Mar 2012
Posts: 34

PostPosted: Sat May 19, 2012 7:23 am    Post subject: MouseClickHandler for a Cell in Calc Reply with quote

Hi, I have a sheet on a calc file and I want to intercept the click of the mouse to know WHICH CELL I have clicked on. Is there a way to do this?
I've implemented an XMouseClickHandler that works but I don't understand how to know the cell
Code:
public class MCH implements XMouseClickHandler {
 
    public void disposing(EventObject e){//do nothing
    }

    public boolean mousePressed(MouseEvent m){return true;}

    public boolean mouseReleased(MouseEvent arg0) { return true;}
}

in mouseReleased I am not able to work with the MouseEvent arg0...
can you help me?
Thank you
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