beautypg.com

Ifwidget – BrightSign Object Reference Manual (FW 5.1) User Manual

Page 70

background image

62

// %Y Four digit year

// Time format
//
// %H The hour using 24-hour clock (00 to 23)
// %I The hour using 12-hour clock (01 to 12)
// %k The hour using 24-hour clock (0 to 23); single digits are preceded by a blank.
// %l The hour using 12-hour clock (1 to 12); single digits are preceded by a blank.
// %M Minutes (00 to 59)
// %S Seconds (00 to 59)

The ifWidget interface provides the following:

SetForegroundColor(color As Integer) As Boolean: Sets the foreground color in ARGB format.

SetBackgroundColor(color As Integer) As Boolean: Sets the background color in ARGB format.

SetFont(font_filename As String) As Boolean: Sets the font_filename using a TrueType font (for
example,

SD:/Ariel.ttf).

SetBackgroundBitmap(background_bitmap_filename As String, stretch As Boolean) As
Boolean: Sets the background bitmap. If stretch is True, then the image is stretched to the size of the window.

SetSafeTextRegion(region As roRectangle) As Boolean: Specifies the rectangle within the widget
where the text can be drawn safely.

Show() As Boolean: Displays the widget. After creation, the widget is hidden until Show() is called.

Hide() As Boolean: Hides the widget.

GetFailureReason() As String: Yields additional useful information if a function return indicates an error.

SetRectangle(r As roRectangle) As Boolean: Changes the size and positioning of the widget rectangle
using the passed roRectangle object.