Tek-Tips is the largest IT community on the Internet today!

Members share and learn making Tek-Tips Forums the best source of peer-reviewed technical information on the Internet!

  • Congratulations strongm on being selected by the Tek-Tips community for having the most helpful posts in the forums last week. Way to Go!

ScrollBar at TWebBrowser

Status
Not open for further replies.

aik2

Programmer
Jun 10, 2003
21
Hello !

How could I add a scrollbars to TWebBrowser component?

Thanks.
 
simple:

put a Twebbrowser component on the form and set Align to alClient.

Optional: implement SetHeight and SetWidth methods of your form.

/Daddy

-----------------------------------------------------
What You See Is What You Get
Never underestimate tha powah of tha google!
 
i dont understand your question.

the scrollbars appear when a page is loaded thats bigger than the TWebBrowser.

Aaron
 
The question is that scrollbars didn't appear when page is bigger then WebBrowser. I see only part of webpage and didn't see any scrollbars.

FormShow procedure:
// WB - is TWebBrowser


WB.Align := alClient ;
WB.Top := 40;
WB.Left:= 0;
Wb.Width := Self.Width;
WB.Height:= Self.Height - 40;

Please advise, Ilya
 
curious, mine has no problem showing scrollbars.

is it only 1 web address doing it or all ?
try loading demos/coolstuff/webbrowser and see how that works.

also when Align:=client then all the others dont apply, top will be 0, left will be 0, width and height will be client.

Aaron
 
Found ! scroll="no" in the html file. lol.
 
doh!

-----------------------------------------------------
What You See Is What You Get
Never underestimate tha powah of tha google!
 
Status
Not open for further replies.

Part and Inventory Search

Sponsor

Back
Top