
In light of Google Developer Day, which I'll be attending tomorrow, I thought I'd be fun to post a teaser about a little VCL mashup I've been working on where I've created a descendant of TWebBrowser to render a Google map with two-way interaction between Javascript and the VCL. The "trick", at least in this case, is using IDocHostUIHandler.GetExternal and connecting the ppDispatch parameter to a Pascal object from the VCL application which exposes application functionality to the Javascript running in the browser control. The screenshot is a standard VCL TForm application with two TButton's, one places a marker on the map at a particular longitude/latitude and the other pans the map to a specific lat/long. Once placed, clicking the marker causes the form's caption to update with text passed from the original button click. The Pascal code is particularly interesting to me because the concepts are very similar to code developed for the Zombie Test Automation framework used back in D3 days. Similar code is used in the IDE's welcome page to handle opening of projects from the browser control.
If there is interest I'll look to blog about this in more detail so let me know what you think.
Have you done any interesting VCL/web mashups?
Nitpicker's corner (with apologies to Raymond Chen for borrowing the name):
I understand this may not fit the classic definition of a "mashup" but it seemed fitting to me.
[
UPDATE: April 2, 2008] Related links:
e4506bec-269f-4932-8ad3-fa01e3e64901|0|.0
Tags: VCL