Page 1 of 1

local file browsing with revBrowserOpenCEF

Posted: Thu Oct 16, 2014 5:43 am
by [-hh]
The new CEF browser (Mac+Win only) can be used as a local file system browser that can display images and plain text; PDF on Win only, not on Mac (yes, I have installed also the AdobePDFViewerNPAPI plugin in a correct place).

Simply use the "file://"-protocol with a folder path, for example

Code: Select all

on mouseUp
  put revBrowserOpenCEF(the windowId of this stack) into brID 
  revBrowserSet brID, "url", ("file://" & the defaultfolder) # <-- folder path
  revBrowserSet brID, "rect", (the rect of img 1)
  revBrowserRedraw brID -- sometimes needed after resetting rect and/or url
end mouseUp