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.
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);
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.
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?
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.
Comments
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
Nico Cizik
Digital Metaphors
http://www.digital-metaphors.com
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
Nico Cizik
Digital Metaphors
http://www.digital-metaphors.com
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
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
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
Nico Cizik
Digital Metaphors
http://www.digital-metaphors.com