Page 1 of 1
revBrowserOpenCEF works in IDE but not standalone?
Posted: Mon Apr 03, 2017 1:28 pm
by bbock12
Hello all,
This code works in the Livecode IDE environment, but when it is made into a standalone program for Windows it does not work:
if gBrowserID is not an integer then
put revBrowserOpenCEF(the windowId of this stack, "https://www[dot]google[dot]com") into gBrowserID
revBrowserSet gBrowserID, "rect", the rect of graphic "browserPlaceholder"
revBrowserSet gBrowserID, "newwindow", true
end if
A debug log is generated and has this error in it:
ERROR:child_process_launcher.cc(445)] Failed to launch child process
I am posting this in the hope that somebody will show me how to solve this issue. Thanks!
- bbock12
Re: revBrowserOpenCEF works in IDE but not standalone?
Posted: Mon Apr 03, 2017 1:35 pm
by MaxV
Switch to the Browser widget, now all other browser incarnations are just the browser widget.
Re: revBrowserOpenCEF works in IDE but not standalone?
Posted: Mon Apr 03, 2017 1:43 pm
by bbock12
Max,
Thank you for your reply!
Regarding the browser widget, that sounds fine except that I do not know how to set it so that it will open a new window in a similar fashion to this:
revBrowserSet gBrowserID, "newwindow", true
Maybe you or someone knows how to solve this issue?
- bbock12
Re: revBrowserOpenCEF works in IDE but not standalone?
Posted: Mon Apr 03, 2017 1:58 pm
by LiveCode_Panos
@bbock12
Have you tried choosing "Select Inclusions" in the "General" pane of the Standalone Settings, and then checking "Browser (CEF)" in the "Inclusions" pane?
Best,
Panos
--
Re: revBrowserOpenCEF works in IDE but not standalone?
Posted: Mon Apr 03, 2017 2:42 pm
by bbock12
Panos,
Even though I had noticed previously that CEF has been created and populated in the Externals folder every time I created a standalone using the automatic search for inclusions feature, I went ahead and tried what you suggested and it worked! Thanks!
Now if you could only solve the problem that the CEF browser will not open blabladomain[.]local
- bbock12
Re: revBrowserOpenCEF works in IDE but not standalone?
Posted: Mon Apr 03, 2017 4:00 pm
by LiveCode_Panos
@block12,
Now if you could only solve the problem that the CEF browser will not open blabladomain[.]local
This affects only the standalone, is that correct?
Just a shot in the dark: What is the path to blabladomain[.]local? Could it be the case that the path is valid for the IDE, but invalid for the standalone?
A sample stack would be helpful for diagnosing the problem.
Best,
Panos
--
Re: revBrowserOpenCEF works in IDE but not standalone?
Posted: Tue Apr 04, 2017 12:02 pm
by MaxV
bbock12 wrote:Max,
Thank you for your reply!
Regarding the browser widget, that sounds fine except that I do not know how to set it so that it will open a new window in a similar fashion to this:
revBrowserSet gBrowserID, "newwindow", true
Maybe you or someone knows how to solve this issue?
- bbock12
goto that substack and use:
Code: Select all
create widget "My New browser " as "com.livecode.widget.browser"
Otherwise the substack already have the widget, and when you open it, it will be shown.
Re: revBrowserOpenCEF works in IDE but not standalone?
Posted: Tue Apr 04, 2017 12:20 pm
by Klaus
Yes, revbrowser or widget, the point is that
WE have to take care of creating a new (browser) window!
But yes, the documentation for this revbrowser property ("newwindow") is VERY misleading!