Page 1 of 1

revBrowserOpenCef (close or exit from this browser)

Posted: Thu May 28, 2015 3:15 pm
by chris0879
how close the following browser?

Code: Select all

 on mouseUp

put revBrowserOpenCef(the windowId of this stack, "http ecc.ecc.") into tBrowserID

revBrowserSet tBrowserID, "rect", the rect of graphic "browserPlaceholder"

end mouseUp    
which method to exit only the browser (revBrowserOpenCef) ?
Thanks in advance!!!

Re: revBrowserOpenCef (close or exit from this browser)

Posted: Thu May 28, 2015 3:18 pm
by Klaus
Hi Chris,

no special CEF command, just:
...
revbrowserclose tBrowserID
...
:D


Best

Klaus

Re: revBrowserOpenCef (close or exit from this browser)

Posted: Thu May 28, 2015 3:35 pm
by chris0879
on mouseUp

revbrowserclose tBrowserID
end mouseUp


//this error display

Type unknown browser id
Object Answer
Line revbrowserclose tBrowserID
Hint unknown browser id

thanks!

Re: revBrowserOpenCef (close or exit from this browser)

Posted: Thu May 28, 2015 3:44 pm
by Klaus
Hi Chris,

make sure tBrowserID is either declared as LOCAL or GLOBAL!


Best

Klaus

Re: revBrowserOpenCef (close or exit from this browser)

Posted: Thu May 28, 2015 4:15 pm
by chris0879
thanks!
now it works!