Rocanvaswidget – BrightSign Object Reference Manual (FW 5.1) User Manual
Page 62

54
roCanvasWidget
This object composites background color, text, and images into a single rectangle, allowing you to layer images on a z-
axis.
Object Creation: Like other widgets, roCanvasWidget is created with an roRectangle to set its size and position on the
screen.
CreateObject ("roCanvasWidget", r As roRectangle) As Object
Interfaces: ifCanvasWidget
The ifCanvasWidget interface provides the following:
•
Hide() As Boolean: Hides the widget.
•
Show() As Boolean: Shows the widget.
•
SetRectangle(r As roRectangle) As Boolean: Changes the size and positioning of the widget rectangle
using the passed roRectangle object.
•
SetLayer(content As Object, z-level As Integer) As Boolean: Sets the contents of a layer within
the widget. The lowest z-level is drawn first, and the highest z-level is drawn last. The object content is described
below.
•
ClearLayer(int z-level) As Boolean: Clears the specified layer.
•
Clear() As Boolean: Clears all of the layers.
•
EnableAutoRedraw(enable As Boolean) As Boolean: Enables or disables the automatic redrawing of the
widget.