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?

Était-ce utile?

La 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.

Licencié sous: CC-BY-SA avec attribution
Non affilié à StackOverflow
scroll top