Class actuate.viewer.ScrollPanel
Description
A container for a scrolling content panel in a viewer. A ScrollPanel object enhances the viewer with scroll controls, such as mouse wheel scrolling.
Constructor
Syntax
Constructs a new ScrollPanel object for the parent viewer enabled scroll controls.
Function summary
Table 4-45 lists actuate.viewer.ScrollPanel functions.
Table 4-45 actuate.viewer.ScrollPanel functionsactuate.viewer.ScrollPanel.getMouseScrollingEnabled
Syntax
Returns True when mouse scrolling is enabled.
Returns
Example
This example displays an alert with the mouse scrolling status of a scroll panel.
alert("Mouse scrolling enabled: " + sPanel.getMouseScrollingEnabled( ));actuate.viewer.ScrollPanel.getPanInOutEnabled
Syntax
Returns True when panning in and out is enabled.
Returns
Example
This example displays an alert with the mouse scrolling status of a scroll panel.
actuate.viewer.ScrollPanel.getScrollControlEnabled
Syntax
Returns True when scrolling is enabled.
Returns
Example
This example displays an alert box with the scrolling status of ascroll panel.
actuate.viewer.ScrollPanel.setMouseScrollingEnabled
Syntax
Enables mouse scrolling for this scroll panel.
Parameters
Example
To disable mouse scrolling for myScrollPanel, use code similar to the following:
actuate.viewer.ScrollPanel.setPanInOutEnabled
Syntax
Enables panning in and out for this scroll panel.
Parameters
Example
To disable panning for the myScrollPanel object, use code similar to the following:
actuate.viewer.ScrollPanel.setScrollControlEnabled
Syntax
Enables scrolling for this scroll panel.
Parameters
Example
To disable scrolling for myScrollPanel, use code similar to the following:
(c) Copyright Actuate Corporation 2011 |
![]() |