Adding Scrollbars to Objects

If an object is too big to display the whole contents within the bounding box, you will need to add scrollbars so that the user can scroll through it. Scrollbars are often used when displaying text but can also be used for other objects, such as Image and Frame objects. Opus allows you to add a Scrollbar object to any object using the Tools toolbar, which contains two scrollbar buttons: the Horizontal Scrollbarimage\Scrollbar_Horiz.jpg button and the Vertical Scrollbarimage\Scrollbar_Vert.jpg button.

Note:
You cannot add a Horizontal Scrollbar to a Text object because text automatically wraps at the end of the line to a new line. Therefore, you can never have text off-to-the-side, which means you do not require a Horizontal Scrollbar.

Adding a Scrollbar object to an object:

  1. Click on the object on the page to which you want to add a Scrollbar object – a bounding box will surround the selected item.

  2. Select the Vertical Scrollbar button and/or the Horizontal Scrollbar button from the Tools toolbar.

  3. The Vertical Scrollbar object is added to the right of the bounding box. The Horizontal Scrollbar object is added to the bottom of the bounding box.

Special Note:

If you add a Vertical Scrollbar to a Text object, a Message box will appear asking you if you want to add keyboard actions to your object as well – these are the same scrolling actions added using the QuickBuild menu, see Add Scroll Actions for more information. Click the Yes button if you want to add the keyboard actions as well as the Vertical Scrollbar and No if you only want to add the Vertical Scrollbar.

  1. The object to which the scrollbar has been added will contain a new Scrollbar object showing the Up, Down and Thumb objects that make up the scrollbar – see Example.

Note:
Just like other objects in your publication, each object in the Scrollbar object has its own Properties dialog, so you can change the appearance of the scrollbar to match your publication design – see Custom Scrollbars for more information.

  1. The size of the Thumb is worked out for you when a scrollbar is added. In other words, the size of the Thumb will change depending on how much of the contents in the object is on display within the bounding box i.e. if the border of the bounding box is small compared to the contents within the object, the Thumb will be small; if the border is nearly the same size as the contents, the Thumb will be large.

  2. The Scrollbar object’s right-click menu has one additional option, named Proportional Thumbs. Untick this option if you want to change the size of the Thumb yourself (see point 4 above). By default, this option is ticked. 

Related Topics:

Custom Scrollbars

Add Scroll Action in the QuickBuild menu

Introducing the Text Actions