Versions Compared

Key

  • This line was added.
  • This line was removed.
  • Formatting was changed.

...

...

...

titleTable of Contents

...

Table of Contents

For more information about available methods, refer to the roTextWidget entry. This object can be used to display a scrolling type ticker.

This object supports both right-to-left and left-to-right (for example, Arabic, Hebrew) scrolling modes, depending on the language of the first string or file added to the widget. To change the scrolling direction, first remove all strings from the ticker.

Object Creation

BSTicker(in unsigned long x, in unsigned long y, in unsigned long w, in unsigned long h, in long rotation);

...

The rotation parameter only affects the text inside the ticker; it does not alter the screen coordinates of the widget itself. If you are creating a vertical ticker or rotating the ticker to match portrait-mode HTML content, you will need to use the x, y, w, h  coordinate parameters to match the rotation of the text.

Methods

boolean SetRectangle(in unsigned long x, in unsigned long y, in unsigned long w, in unsigned long h)

...

The following example diagram and code snippets specify a multiscreen display with two monitors. The width of each monitor is 1024 pixels, while the width of each ticker is 768 pixels:

...

Events

bsTicker.ontickerstringremoved

This event handler is triggered when a string has been removed and is no longer visible. The event contains the string_id property, which is returned by a successful AddString() call.

Examples

The following script shows how to use many of the available BSTicker methods:

...