Solved

Webbrowser scrool bars

Posted on 2000-03-12
5
329 Views
Last Modified: 2010-04-04
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
0
Comment
Question by:jpcs
  • 2
  • 2
5 Comments
 
LVL 17

Expert Comment

by:inthe
Comment Utility
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
 
LVL 1

Author Comment

by:jpcs
Comment Utility
sorry, none worked (I don't have access to the HTML code)


regards
0
 
LVL 1

Accepted Solution

by:
wmckie earned 50 total points
Comment Utility
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
 
LVL 1

Author Comment

by:jpcs
Comment Utility
thanks... It has some other options I was looking for.

Thanks a lot!!!

0
 
LVL 1

Expert Comment

by:wmckie
Comment Utility
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

Featured Post

Find Ransomware Secrets With All-Source Analysis

Ransomware has become a major concern for organizations; its prevalence has grown due to past successes achieved by threat actors. While each ransomware variant is different, we’ve seen some common tactics and trends used among the authors of the malware.

Join & Write a Comment

This article explains how to create forms/units independent of other forms/units object names in a delphi project. Have you ever created a form for user input in a Delphi project and then had the need to have that same form in a other Delphi proj…
Introduction Raise your hands if you were as upset with FireMonkey as I was when I discovered that there was no TListview.  I use TListView in almost all of my applications I've written, and I was not going to compromise by resorting to TStringGrid…
Illustrator's Shape Builder tool will let you combine shapes visually and interactively. This video shows the Mac version, but the tool works the same way in Windows. To follow along with this video, you can draw your own shapes or download the file…
Get a first impression of how PRTG looks and learn how it works.   This video is a short introduction to PRTG, as an initial overview or as a quick start for new PRTG users.

771 members asked questions and received personalized solutions in the past 7 days.

Join the community of 500,000 technology professionals and ask your questions.

Join & Ask a Question

Need Help in Real-Time?

Connect with top rated Experts

10 Experts available now in Live!

Get 1:1 Help Now