Link to home
Start Free TrialLog in
Avatar of jpcs
jpcs

asked on

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
Avatar of inthe
inthe

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.
Avatar of jpcs

ASKER

sorry, none worked (I don't have access to the HTML code)


regards
ASKER CERTIFIED SOLUTION
Avatar of wmckie
wmckie

Link to home
membership
This solution is only available to members.
To access this solution, you must be a member of Experts Exchange.
Start Free Trial
Avatar of jpcs

ASKER

thanks... It has some other options I was looking for.

Thanks a lot!!!

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