This is an SVG based interactive/live analog clock that can be bound to a time variable.
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.
- Bound Variable
Type is time.
//Properties (Read/Write) Clock_Get_live_update Clock_Get_enterable Clock_SET_LIVE_UPDATE Clock_SET_ENTERABLE
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.