Scrollbars in MenuBox Browser Container
TOPIC
Q: When scrollbars are disabled in MenuBox, all scrollbars, including those in parts of frames, are disabled. Can I disable window scrollbars while enabling specific scrollbars in frames?
DISCUSSION
A: The MenuBox ScrollBars property, which is controlled by the ScrollBars key in the [HTMLWindow] section of the MenuBox configuration file, controls all scrollbars in the window, including those in frames. When scrollbars are disabled in MenuBox, as they are by default, no scrollbars are displayed.
In order to obtain finer control over the scrollbars which may be a required part of your project, we recommend that you set ScrollBars to True in MenuBox, and specify individual local properties in your HTML code.
Window scrollbars, i.e. those applying to the BODY element, are controlled by the overflow, overflow-x and overflow-y CSS properties. Since these are not fully supported by older versions of Microsoft code, which MenuBox relies on, we recommend that you also use the Microsoft-specific scroll property.
For example, to disable both main window scrollbars, use:
<body scroll="no" style="overflow:hidden;">
Inside FRAME and IFRAME elements you can use the scrolling attribute, which is a standard HTML feature.
For example:
<iframe src="example.html" scrolling="yes"></iframe>
and, in example.html:
<body style="overflow-x:hidden; overflow-y:auto;" scroll="yes">
Note the difference between "scroll" and "scrolling".
Related Links
ARTICLE INFORMATION
Article ID: | 13-187 |
---|---|
Platform: | Windows |
Products: | MenuBox |
Additional Keywords: | IE, IE5 |
Last Update: | 2014-12-22 |
It is safe to link to this page.