Versions Compared

Key

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

...

Panel
borderColor#3D3D3D
bgColor#F4F4F4
titleColor#3D3D3D
borderWidth0
titleBGColor#3D3D3D
borderStylesolid

ON THIS PAGE

Table of Contents
indent20px

Insert excerptBrightScript Version Navigation MenuBrightScript Version Navigation MenunopaneltrueThis object places a clock on the screen. It has construction arguments only.

...

  • rect: The rectangle in which the clock is displayed. The widget picks a font based on the size of the rectangle.
  • res: A resources.txt file that allows localization via the roResourceManager object (see below for further details).
  • display_type: Use 0 for date only, and 1 for clock only. To show both on the screen, you need to create two widgets.

 


Code Block
titleExample
rect=CreateObject("roRectangle", 0, 0, 300, 60)
res=CreateObject("roResourceManager", "resources.txt")
c=CreateObject("roClockWidget", rect, res, 1)
c.Show()

...

Changes the size and positioning of the widget rectangle using the passed roRectangle object.