Finding the object from the screen (or client) coordinates

The PDF Creator .NET Library enables you to create secure PDF documents on the fly and to view, print and process existing PDF documents. If you have any questions about PDF Creator .Net, please post them here.
Post Reply
cseils
Posts: 1
Joined: Sun Oct 01 2006
Location: Australia

Finding the object from the screen (or client) coordinates

Post by cseils »

Hello,

Is there a way to find out which object on a pdf document the mouse cursor is currently over? I know the the FireMouseMove event gives you this, but it does not fire when the left mouse button is down during a drag operation.

I am trying to implement drag and drop functionality with the PDF Creater.Net control where the user drags an image from another control to the PDF control and drops it onto 1 of many picture objects on the pdf document.

Is there a way to do this? Do I have to write a huge fuction that converts pixels to twips and take into account the ruler and the zoom factor of the document, and then use ObjectAtXY function to figure this out?

Thanks
Chris
Post Reply