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?

有帮助吗?

解决方案

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.

许可以下: CC-BY-SA归因
不隶属于 StackOverflow
scroll top