Wednesday 21 August 2013

Rapide Canvas Control

Canvas is a new type of control available in Rapide. A Canvas is a widget placed on the window that can then be 'drawn on' using action diagram functions and hence provides a more dynamic way of visualising data.

In the example below, a battery meter is drawn using a blank battery bitmap and a superimposed user drawn rectangle and text, with the width and colour depending on the charge level.


The action diagram code used to draw the battery is shown below.


No comments: