Solved

Webbrowser scrool bars

Posted on 2000-03-12
5
337 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
[X]
Welcome to Experts Exchange

Add your voice to the tech community where 5M+ people just like you are talking about what matters.

  • Help others & share knowledge
  • Earn cash & points
  • Learn & ask questions
  • 2
  • 2
5 Comments
 
LVL 17

Expert Comment

by:inthe
ID: 2610045
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
ID: 2610094
sorry, none worked (I don't have access to the HTML code)


regards
0
 
LVL 1

Accepted Solution

by:
wmckie earned 50 total points
ID: 2611673
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
ID: 2626136
thanks... It has some other options I was looking for.

Thanks a lot!!!

0
 
LVL 1

Expert Comment

by:wmckie
ID: 2627000
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

Free Tool: SSL Checker

Scans your site and returns information about your SSL implementation and certificate. Helpful for debugging and validating your SSL configuration.

One of a set of tools we are providing to everyone as a way of saying thank you for being a part of the community.

Question has a verified solution.

If you are experiencing a similar issue, please ask a related question

Hello everybody This Article will show you how to validate number with TEdit control, What's the TEdit control? TEdit is a standard Windows edit control on a form, it allows to user to write, read and copy/paste single line of text. Usua…
In my programming career I have only very rarely run into situations where operator overloading would be of any use in my work.  Normally those situations involved math with either overly large numbers (hundreds of thousands of digits or accuracy re…
Finds all prime numbers in a range requested and places them in a public primes() array. I've demostrated a template size of 30 (2 * 3 * 5) but larger templates can be built such 210  (2 * 3 * 5 * 7) or 2310  (2 * 3 * 5 * 7 * 11). The larger templa…

749 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