Delphi .NET (2) Database (71) Delphi IDE (90) Network (39) Printing (3) Strings (12) VCL (83) Windows with Delphi (280)
Exchange Links About this site Links to us 
|
Hide scrollbars in a TWebBrowser
This article has not been rated yet. After reading, feel free to leave comments and rate it.
Question:
How can I hide the scrollbars in my TWebBrowser component?
Answer:
There are two properties in the Document.Body.Style property, named OverflowX and OverflowX. Simply set them to 'hidden' as shown in the code snippet below.
For more information on the TWebBrowser's document properties, see the other tips listed at the top.  | |  | | begin
with WebBrowser1.Document.Body.Style do
begin
OverflowX := 'hidden';
OverflowY := 'hidden';
end;
end; | |  | |  | You don't like the formatting? Check out SourceCoder then!
Comments:
|