use the OnAddressChange
in TChromium.
Add a hyper Link same <a href="exiting.exit">exit</a>
in your html document after then write OnAddressChange
:
if (url = 'exiting.exit') then
self.close;
this a simple fast way.
Question
I want to close my delphi program from TChromium component.But i can't do this.I tried to put TPanel above TChromium,but it is wrong,program have an error "Invalid CEF library version".Also i tried to use TImage,but TImage don't stay above TPanel.Somebody can help me?
Solution
use the OnAddressChange
in TChromium.
Add a hyper Link same <a href="exiting.exit">exit</a>
in your html document after then write OnAddressChange
:
if (url = 'exiting.exit') then
self.close;
this a simple fast way.