I have a utility application (code for never finished!) that displays pdf scans of A4 sized documents in a revbrowser on a stack. The revbrowser is positioned using an image control that occupies the lefthand side of the stack. The application allows the user to resize the stack to fit on various screen sizes and one handler controls the layout of the controls. The browser is set to display scroll bars so that multi page scans may be viewed.
The application is working but I have noticed a problem : as the stack width is increased so is the width of the browser and above a certain width the pdfs are displayed partially scrolled down. The exact width that this occurs depends on the height of the browser and is most likely to do with the ratio of height to width of the A4 sized pdf scans. Its possible to scroll up using the scroll bar but setting the vscroll property has no effect.
Code: Select all
on setvScroll
revBrowserSet sBrowserID, "vscroll", 0
Beep
end setvScroll
I have tried a range of scroll values and the browser fails to scroll. I have also waited for the browser redraw to complete but the code still fails."vscroll" -The number of pixels down that the browser is scrolled. The default is zero.
So any ideas on how I might get my browser to scroll. Also is there any way to control how the browser scales a pdf for display?
best wishes
Simon