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

Mouse scroll not working in print preview

edited October 2010 in General
Hello,

could it be that the mouse scroll does not work in a print preview when using
the ppviewer component?

Thx,
Bernaert Dominique

Comments

  • edited October 2010
    Hi Bernaert,

    Which version of ReportBuilder and Delphi are you using? Are you certain
    the Preview window is the active window on screen? Mouse scroll inside the
    Preview is supported for later versions of ReportBuilder.

    --
    Regards,

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

    Best Regards,

    Nico Cizik
    Digital Metaphors
    http://www.digital-metaphors.com
  • edited October 2010
    This is a multi-part message in MIME format.
  • edited October 2010
    Hi Dominique,

    For future reference, please send all attachments to
    support@digital-metaphors.com instead of attaching them here.

    I'm sorry, I thought you were using the built-in previewer rather than a
    customized TppViewer.

    For a TppViewer, you will need to implement the OnMouseWheel event of the
    owner of the TppViewer object in order to scroll with the mouse wheel.
    Below is the code used in the TppPreview class to scroll inside that event.

    Viewer.ScrollBox.VertScrollBar.Position :=
    Viewer.ScrollBox.VertScrollBar.Position - (WheelDelta div 5);

    --
    Regards,

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

    Best Regards,

    Nico Cizik
    Digital Metaphors
    http://www.digital-metaphors.com
  • edited June 2011
    On 10/26/2010 3:26 PM, Nico Cizik (Digital Metaphors) wrote:


    Nico,

    Can this be added to ReportBuilder in the future so that I, as a
    developer, don't have to code this detail. After all, I don't code when
    right clicks can happen.

    And for now, documentation seems to be lacking, as this message is the
    only info I found for how ReportBuilder handles mouse scrolling.

    Patrick
  • edited June 2011
    On 6/12/2011 10:00 AM, Patrick Moloney wrote:


    I meant to also ask whether that solution is hard-coding the
    responsiveness to the user's scrolling. Isn't that something that is set
    by the user on his PC? Isn't there a way to use the user's setting?

    Patrick
  • edited June 2011
    Hi Patrick,

    Thanks for the feedback, we will consider adding this natively for a
    later release.

    With the code below, you are hard-coding the amount of space that will
    be scrolled each time the mouse wheel changes. Using the WheelDelta
    position as-is should give you the user setting. See the Delphi help for
    the OnMouseWheel for more information.


    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.