hi, jim.jim1001 wrote:I'd be grateful for any answers to some basic questions about this solution.
you open the pdf inside your LC app. in someway, you can write your pdf viewer app using LC.jim1001 wrote: [*]Does this allow for PDF viewing inside a LiveCode app or does it jump out of the LiveCode app?
in my case, yes. as i previously said, the browser widget was not reliable in my context. then i used the good old way. i.e.:jim1001 wrote: [*]Does it use the following LiveCode?Code: Select all
mobileControlCreate “browser”
Code: Select all
local sBrowserID
on openMobileBrowser pURL //for mobile environment
if sBrowserID is a number then mobileControlDelete sBrowserID
mobileControlCreate "browser"
put the result into sBrowserID
mobileControlSet sBrowserId, "rect", (the rect of grc "browserRect")
mobileControlSet sBrowserID, "visible", "true"
mobileControlSet sBrowserID, "autoFit", "true"
mobileControlSet sBrowserID, "scrollingEnabled", "true"
mobileControlSet sBrowserID, "url", pURL
end openMobileBrowser
on openMacBrowser pURL //CEF browser has bugs on mac
put revBrowserOpen(the windowid of this stack, "") into tBrowserId
if tBrowserId is not an integer then doAlert "Error on opening browser:" && tBrowserId
put tBrowserId into sBrowserId
revBrowserSet sBrowserId, "showborder", true
revBrowserSet sBrowserId, "rect", (the rect of grc "browserRect")
revBrowserSet sBrowserId, "url", pURL
end openMacBrowser
on openCEFBrowser pURL //for windows, and linux - probably…
put revBrowserOpenCef(the windowid of this stack, "") into tBrowserId
if tBrowserId is not an integer then doAlert "Error on opening browser:" && tBrowserId
put tBrowserId into sBrowserId
revBrowserSet sBrowserId, "showborder", true
revBrowserSet sBrowserId, "rect", (the rect of grc "browserRect")
revBrowserSet sBrowserId, "url", pURL
end openCEFBrowser
on doAlert pMessage
answer warning pMessage
exit to top
end doAlert
i'm still using LC 8.1.0., indy edition, and concering that version the answer is "yes". you have just to do your own tests using the version your need to.jim1001 wrote: [*]Will it work with LiveCode Community current stable release (8.1.6)?
i don't like widgets, i can't give you any info on this.jim1001 wrote: ...and now having had a quick look at the LiveCode Dictionary for widget
[*]What is the list of all things you need to do for the solution? eg. do you have to build your own widget from a Builder extension? (something I know nothing about)
[*]Assuming widgets are important in all this, where is the best place to find out more about them in general (including their URL property)?[/list]
Thanks!
regards.