It's been a year since my last post in this string, and I am again interested in using the "vscroll" property of the revBrowser. I want to load local PDF documents into the revBrowser and get the document to scroll down a pre-determined number of pixels when I select a line in a locked, listBehavior field that contains the table of contents for the document. I now understand better custom properties and the discussion above about storing the instanceID in a custom property in an object.
The document fully loads, but when I click the field, nothing happens. Does this feature actually work?
Here the code for opening the PDF:
Code: Select all
on mouseup
resetcard
put revBrowserOpenCEF(the WindowID of this stack) into gBrowserID
set the browserID of grc "rulebrowser" to gBrowserID
revBrowserSet gBrowserID, "rect", the rect of grc "ruleBrowser"
revBrowserSet gBrowserID, "url", "file:///cts/courtRules/"&tRules&".pdf"
end mouseup
on resetCard
repeat for each item gBrowserID in revBrowserInstances()
revBrowserClose gBrowserID
end repeat
end resetCard
Here is the code for the field:
Code: Select all
on mouseup
put the browserID of grc "ruleBrowser" into gBrowserID
revBrowserSet gBrowserID, "vscroll", "4000"
end mouseup
Thank you for any suggestions.
Monty