Solved

Webbrowser scrool bars

Posted on 2000-03-12
5
334 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

Is Your AD Toolbox Looking More Like a Toybox?

Managing Active Directory can get complicated.  Often, the native tools for managing AD are just not up to the task.  The largest Active Directory installations in the world have relied on one tool to manage their day-to-day administration tasks: Hyena. Start your trial today.

Question has a verified solution.

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

Suggested Solutions

Title # Comments Views Activity
Machine not responding during CopyFile() 3 98
Delphi...Split view - idea? 1 68
RESTRequest Parameter 4 30
can i put an image from resource into image tag ? 6 25
The uses clause is one of those things that just tends to grow and grow. Most of the time this is in the main form, as it's from this form that all others are called. If you have a big application (including many forms), the uses clause in the in…
Introduction The parallel port is a very commonly known port, it was widely used to connect a printer to the PC, if you look at the back of your computer, for those who don't have newer computers, there will be a port with 25 pins and a small print…
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…
This video shows how to quickly and easily add an email signature for all users on Exchange 2016. The resulting signature is applied on a server level by Exchange Online. The email signature template has been downloaded from: www.mail-signatures…

770 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