Last modified 3 years ago Last modified on 2012-03-13 00:09:36

Clock


This is an SVG based interactive/live analog clock that can be bound to a time variable.


  • Instructions

Place the widget on form and add the following line of code to its object method.

Clock_HANDLE_EVENT (OBJECT Get name(Object current))

Note: If you intend to make the widget resizable, add the same line of code to the parent form method, as demonstrated in the example. This is because the widget needs to adjust its centre point according to the dimensions of the parent form, to capture mouse movements outside its region.

  • Call backs

Not implemented. Use the standard On Data Change event.

Clock_GET_EVENT_CONTEXT ($1;${2})
  • Bound Variable

Type is time.

  • Methods
//Properties (Read/Write)

Clock_Get_live_update
Clock_Get_enterable
Clock_SET_LIVE_UPDATE
Clock_SET_ENTERABLE

CHANGE LIST

Added "&xml" to all numeric casts to string, for locales that uses comma as decimal separators.

Re-factored to use standard callback and event handlers.


DOWNLOAD

v12 Sample + Component


SCREENSHOT


Attachments