Show hint over rows of report
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.
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.
This discussion has been closed.
Comments
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
Nico Cizik
Digital Metaphors
http://www.digital-metaphors.com