Hi,
i am currently trying to switch an application using EmbeddedWB to CEF. During that, some problems occurred, and a little help or input would be nice.
To understand some questions you should know, that i dont want to use external web-Content but to show dynamically generated (html) content.
1) In EmbeddedWB i could load the content during ShowFrame. Using CEF this does not work, it only works in my refresh-method when i press F5 after the frame has been created. I cant use OnAfterCreated, because at that Point i dont have the content that should be displayed. Any good practise here? To use custom content, i have to first initialize the view with browser.GetMainFrame.LoadURL('about.blank') followed with LoadString(<html>, 'about:blank'). Is this correct or should i use some kind of own namespace in the second param?
2) Setting the HTML-Content works fine, but in the file we use Images from resource-files -> <img src="res://<SomeRessourceContent>"> . I did not find an easy way to get those Images displayed. What is the suggested method to do this? As i can remember using EmbeddedWB there was no to implement something to get those Images (probably because the activeX-Environment had more access to the local files). I get the requested resource-info using BeforeResourceLoad, so do i need to pass the image in that resource stream or is there an easier way?
3) Further we use HREFs to open other Windows or use specific functions of the program (like <a href="=<SomeID>?<SomeParam>">. I tried several events provided by TChromium (like OnBeforeBrowse) but i found no way to get those data/params-Infos.
As i see from your examples, the perfect solution would be to switch those href-commands to JavaScript-calls and Register own Extension(?)-Handlers. As the current concept works fine at the moment, it would be nice if there is a way using the existing html-code for a quick start.
Thanks for your Feedback,
Sillicoid