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

Show hint over rows of report

edited September 2005 in General
I've read old messages in this newsgroup about the need to descend from
TppPreview in order to turn on hints for the toolbar. I want to also have
pop-up hints that appear when the mouse is placed over rows of my detail
report. I'm currently trapping the OnDrawCommandClick to pop up a dialog
when such a detail row is clicked on. The cursor changes to a hand when over
one of these rows, so there must be some fairly easy way to jump in and show
a hint.

Can anyone provide some ideas of how / where to place my code? Thanks in
advance.

Comments

  • edited September 2005
    Hi Keith,

    If you take a look at the PaintBoxMouseMoveEvent inside the TppViewer class
    (ppViewr.pas), this is the event that fires when you move your mouse over a
    drawcommand that is clickable. Notice at the bottom of this event the
    OnMouseMove event is fired. This would be the best place for your to tie
    in. You can access the Viewer object by type casting the
    Report.PreviewForm.Viewer property to a TppViewer.

    Once you get access to this event, you will need to do something similar to
    what is done inside the PaintBoxMouseMoveEvent to gain access to the
    drawcommand object.

    --
    Regards,

    Nico Cizik
    Digital Metaphors
    http://www.digital-metaphors.com

    Best Regards,

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