...
Panel | ||||||||||||
---|---|---|---|---|---|---|---|---|---|---|---|---|
| ||||||||||||
ON THIS PAGE
|
Insert excerpt
...
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 | ||
---|---|---|
| ||
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.