Hi guys,
I am trying to do a small preview window to dynamically display a given website. I have a TWebBrowser sized at H=150, w=200 and want to display a mini screenshot of a webpage.
The problem is that websites don't scale down to fit the component, so I end up with a normal sized webpage with scrollbars in a 150x200 box.
Any ideas on how to do this?
I have a couple of hack methods up my sleeve that *may* work:
1) have an invisible TWebBrowser, load the website, draw the TWebBrowser into a Bitmap and resize the bitmap to 150x200
2) Override the web page CSS and set the body to 150px (I doubt this will work though)
I am trying to do a small preview window to dynamically display a given website. I have a TWebBrowser sized at H=150, w=200 and want to display a mini screenshot of a webpage.
The problem is that websites don't scale down to fit the component, so I end up with a normal sized webpage with scrollbars in a 150x200 box.
Any ideas on how to do this?
I have a couple of hack methods up my sleeve that *may* work:
1) have an invisible TWebBrowser, load the website, draw the TWebBrowser into a Bitmap and resize the bitmap to 150x200
2) Override the web page CSS and set the body to 150px (I doubt this will work though)