Between the calls, there is no dc.clearClip or dc.clear in my code, as it is in onUpdate which is called only every minute.
Flow:
First "99" is written with drawText(), the second after "--" is written.
At this point in time you can see "--" with a rest of the previos "9" on the reight side of the "clip".
(same would be, if a write nothing "" to the clip, I would see the old value!(?)
Do I have to erase the clipped region before I write to it?
How can I set "Background" color to the clip? (dc.drawRectangle(x-10, y-10, 20, 20); ??) but with what color?
(
function onPartialUpdate( dc )
{
var textAsString = getText();
dc.setClip(212, 100, 40, 50);
dc.drawText(212, 100, Gfx.FONT_SYSTEM_MEDIUM, textAsString, Gfx.TEXT_JUSTIFY_LEFT);