In Delphi, Anyone know a quick way to scale / shrink TWebBrowser?

I just want to shrink the WebBrowser component.  Say, from 800x600, to 100x60 or whatever.

I was hoping that it would have like a SCALE property and I could just type in, say, 25% and whichever page I was on would be a little thumbnail version of the webbrowser.

but it looks like its not so simple...

some methods seem to involve capturing the bitmap first and then scaling that in its place...

ideas?
toratoratoraAsked:
Who is Participating?

[Product update] Infrastructure Analysis Tool is now available with Business Accounts.Learn More

x
I wear a lot of hats...

"The solutions and answers provided on Experts Exchange have been extremely helpful to me over the last few years. I wear a lot of hats - Developer, Database Administrator, Help Desk, etc., so I know a lot of things but not a lot about one thing. Experts Exchange gives me answers from people who do know a lot about one thing, in a easy to use platform." -Todd S.

cyberkiwiCommented:
The TWebBrowser is a wrapper and uses IE controls behind the scenes.
Therefore what IE cannot do (shrink to thumbnail size), TWebBrowser also cannot do.

>>some methods seem to involve capturing the bitmap first and then scaling that in its place...
Yes that will scale the static image captured, but you can't interact with it.
0
cyberkiwiCommented:
I take back part of what I said, IE8 can do the scaling zoom (not text) and it goes to as small as 10%.
It does not look like the TWebBrowser control, and the underlying WebBrowser Control, exposes it

http://msdn.microsoft.com/en-us/library/aa752085(VS.85).aspx

But, you can access the underlying IWebBrowser and use the technique shown below (c#/vb code)

http://slingkid.blogsome.com/2007/04/13/ie-zoom/

Or, you can always cheat and access the document DOM and modify the body tag and add following style in body tag
<body style="zoom: 10%">
0

Experts Exchange Solution brought to you by

Your issues matter to us.

Facing a tech roadblock? Get the help and guidance you need from experienced professionals who care. Ask your question anytime, anywhere, with no hassle.

Start your 7-day free trial
toratoratoraAuthor Commented:
ha ha




tricky

thanks!
0
It's more than this solution.Get answers and train to solve all your tech problems - anytime, anywhere.Try it for free Edge Out The Competitionfor your dream job with proven skills and certifications.Get started today Stand Outas the employee with proven skills.Start learning today for free Move Your Career Forwardwith certification training in the latest technologies.Start your trial today
Editors IDEs

From novice to tech pro — start learning today.