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

Drawing a rectangle at a point specified by mouse click

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


Joined: 24 Feb 2009
Posts: 8

PostPosted: Mon Apr 06, 2009 9:14 am    Post subject: Drawing a rectangle at a point specified by mouse click Reply with quote

Here, i want that if I clicked on someplace in the document then a rectangle should be drawn at the position of a particular size. Now I know how to handle the mouse clicks and how to draw the rectangle also.

But the problem is that when I try to draw the rectangle using the coordinates returned by the event handler evt.X and evt.Y, then the rectangle is drawn at some other location. This means that the coordinate system of both are different.

The language I am using is Openoffice Basic
Can anyone tell me how to find a mapping between the coordinates such that when I click on someplace then the rectangle should be drawn at that place only.
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