Tek-Tips is the largest IT community on the Internet today!

Members share and learn making Tek-Tips Forums the best source of peer-reviewed technical information on the Internet!

  • Congratulations Chris Miller on being selected by the Tek-Tips community for having the most helpful posts in the forums last week. Way to Go!

_WebBrowser control - Horizontal Scrollbar

Status
Not open for further replies.

EzLogic

Programmer
Aug 21, 2001
1,230
US
On one of my form, i have _webBrowser control.

Everything works fine for the website loading in it, however, some of the pages, are wider than our form, where the horizontal scroll bars do not show, but, the vertical scroll bar will show for the embedded browser.

if we launch normal IE and go to the page, the page does have the horizontal scroll bar and vertical.

Any thoughts, or idea to help me with this?

Ez Logic
Michigan
 
In general, a horizontal scroll bar will appear if the web page, or a container within it, has a specified width and that width is greater than the client area of the browser window. In other words, it's a web page issue, and not something that you can control from within VFP.

You can avoid the scroll bar by specifying the widths within the page as percentages rather than absolute amounts. But presumably you do not have control over the coding of the page, so that option won't be available to you.

As for why you are seeing scroll bars in the browser control but not in IE, could that simply be because the IE client area is wider? You can easily check that by resizing the IE window so that its width matches that of the control.

Mike

__________________________________
Mike Lewis (Edinburgh, Scotland)

Visual FoxPro articles, tips and downloads
 
The VFP Task Pane is made with mainly a Webbrowser (WB) Control and that shows both scrollbars, when you make the window narrow enough. Before a horizontal scroll bar appears mostly a responsive design shrinks columns of a layout down to a minimum size before the scroll bar appears.

One thing different in WB vs IE is the WB by default renders in another mode than IE. There are registry keys controlling this behaviour, see
Bye, Olaf.
 
Status
Not open for further replies.

Part and Inventory Search

Sponsor

Back
Top