Home General
New Blog Posts: Merging Reports - Part 1 and Part 2

TppViewer: get current mouse position in mm

edited April 2004 in General
Hi!

How can I determine the current mouse position in the
TppViewer-Component in mm (offset to upper left edge of paper)?

Best regards,
Siegbert Waldner

Comments

  • edited April 2004
    Siegbert,

    The TppViewer is a TCustomPanel descendent which in turn descends from
    TControl. From here you can access the OnMouseMove event and obtain the
    current pixel cordinates of the mouse. If you would then like to convert
    the pixel values to millimeters, you can use the utility function
    ppFromScreenPixels located in the ppUtils.pas file.

    --
    Best Regards,

    Nico Cizik
    Digital Metaphors
    http://www.digital-metaphors.com
This discussion has been closed.