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

RB 14 and Scrollbar Width issue,

edited January 2012 in General
Hi,

I have just upgraded to Report Builder 14, and am having a problem with
my custom preview form.

In my project I used to have the following:

lScrollBar := ppViewer1.ScrollBox.HorzScrollBar;
lScrollBar.Position := lScrollBar.Position - ppViewer1.ScrollBox.Width;


I have realised that I need to use the ScrollablePaintBox (ie
ppviewer1.ScrollablePaintBox.HorizontalScrollBar ) to access my
HorzScrollBar.

However I don't know how to get the Scrollbox Width.

lScrollBar := ppViewer1.ScrollablePaintBox.HorzScrollBar;

is fine, but

lScrollBar.Position := lScrollBar.Position -
ppViewer1.ScrollablePaintBox.Width;

does not work. (There is no width property)

Can you please advise what I should be changing this to?

Thanks & Regards

Adam.

Comments

  • edited January 2012
    Hi Adam,

    The TppScrollablePaintBox is not a TControl descendent itself. You can
    use its internal TPaintBox property or the Viewer itself to find the width.

    ppViewer1.Width

    or

    ppViewer1.ScrollablePaintBox.PaintBox.Width

    Best Regards,

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