TWebBrowser
is a wrapper of hosted WebBrowser Control
. If your system has a MSIE 5-7 installed, your browser application renders web pages exactly the same as MSIE. I can imagine the heatmap looks broken in old MSIE, too.
If your system has a MSIE 8 (or higher) installed, your browser application will render web pages by default in compatible mode, unless you specify the default emulation mode explicitly in Registry.
The Solution
For instance, your system has MSIE 10 installed and your application is yourapp.exe
. You'd write a string entry name=yourapp.exe, value=10000
into Registry. I recommend write to HKCU for the current user (not HKLM).
HKEY_LOCAL_MACHINE (or HKEY_CURRENT_USER)
SOFTWARE
Microsoft
Internet Explorer
Main
FeatureControl
FEATURE_BROWSER_EMULATION
yourapp.exe = (DWORD) 00010000
Now your application can render the heatmap exactly as MSIE10 does. A full list of emulation values is described at (MSDN).
Note that you should first read the version of MSIE installed on your system. You cannot set emulation mode to 11000 (MSIE11), if you have only MSIE10 installed.