I received an email about my first Google Maps in a TWebBrowser post asking how to remove the white border around the map, in order to let the GoogleMap fill the whole area of the TWebBrowser.
The white border is simply the default margin of the body of the document. Adding style=”margin:0″ to the <body> tag will push the map to the upper left (so changing the original example, the new line will be “<body onload=”load()” onunload=”GUnload()” style=”margin:0″>”).
Allowing the map to fill the whole TWebBrowser is a little more involved.
(more…)
posted by Jason at 1:09 pm
I wanted to find a way to use JQuery from Delphi on a page in a TWebBrowser, without requiring downloading over the internet, nor from the filesystem.
Download the Delphi 2009 project.

It turns out you can just execute the whole contents of the JQuery javascript file.
(more…)
posted by Jason at 9:42 pm
At work, we use ADO exclusively to connect to MS SQL Server, and I’m interested in exploring some of the things you can do with dbExpress and metadata, so I am trying to figure out how to create a connection on the fly, without setting up a new connection through Delphi, to be stored in the dbx ini files. I recently read a newsgroup post about deployment problems with Delphi 2009 needing dbxconnections.ini and dbxdrivers.ini, but I think eventually, it will be fixed.
(more…)
posted by Jason at 12:12 am