Solved

Webbrowser scrool bars

Posted on 2000-03-12
5
336 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
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: Subnet Calculator

The subnet calculator helps you design networks by taking an IP address and network mask and returning information such as network, broadcast address, and host range.

One of a set of tools we're offering 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

Creating an auto free TStringList The TStringList is a basic and frequently used object in Delphi. On many occasions, you may want to create a temporary list, process some items in the list and be done with the list. In such cases, you have to…
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…
Two types of users will appreciate AOMEI Backupper Pro: 1 - Those with PCIe drives (and haven't found cloning software that works on them). 2 - Those who want a fast clone of their boot drive (no re-boots needed) and it can clone your drive wh…
With Secure Portal Encryption, the recipient is sent a link to their email address directing them to the email laundry delivery page. From there, the recipient will be required to enter a user name and password to enter the page. Once the recipient …

829 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