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?

Was it helpful?

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.

Licensed under: CC-BY-SA with attribution
Not affiliated with StackOverflow
scroll top