RB 14 and Scrollbar Width issue,
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.
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.
This discussion has been closed.
Comments
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
Nico Cizik
Digital Metaphors
http://www.digital-metaphors.com