Webbrowser scrool bars

Hi!

How can I hide the twebbrowser component's scrool bars (vertical and horizontal) and also, how to change the bevel (lower, rise, or none?

regards
LVL 1
jpcsAsked:
Who is Participating?
 
wmckieConnect With a Mentor Commented:
Take a look at Per Lindso Larsen's web site:

http://www.euromind.com/iedelphi/EmbeddedWb.htm

Per's EmbeddedWB control adds much additional functionality to the standard TWebBrowser. In particular there are options in the UserInterfaceProperty to remove the scrollbars and switch off the 3D border.

Cheers - Walter McKie
0
 
intheCommented:
Hi ,
couple of ideas to test.

find a good event for it and do:
ShowScrollbar(TWebbrowser1.handle,SB_BOTH,False);
{should work with any windowed control}
 

or you could try:

WB.OleObject.document.body.style.overflowX := "hidden";
WB.OleObject.document.body.style.overflowY := "hidden";
 
or
 
If your displaying your own content ,in your document place the following in your html files:
 
<BODY STYLE="overflow-x:hidden;overflow-y:hidden">

or:

<BODY SCROLL=NO>


no idea about the bevel,i use it on a tpanel and set the bevel of the panel instead.
0
 
jpcsAuthor Commented:
sorry, none worked (I don't have access to the HTML code)


regards
0
 
jpcsAuthor Commented:
thanks... It has some other options I was looking for.

Thanks a lot!!!

0
 
wmckieCommented:
Hi ipcs,

Glad to help, this component of Per's is an excellent piece of work and the other tips & components on his site are well worth knowing about.

If your planning to work with the IE control then I'd also recommend a look at:

http://www.egroups.com/list/delphi-webbrowser/

Good luck - Walter Mckie
0
All Courses

From novice to tech pro — start learning today.