Update specified text areas without cleaning whole screen?

Hello,

I have graphic elements that add to each other on events. I would like to output and change text according to the status of the graphic elements.

I just want to update the text without clearing the whole screen (because all sequentially created graphic elements would be lost).

How is this possible?

I work with:

  myText2 = new WatchUi.Text({
            :text=>"TEXT",
            :color=>Graphics.COLOR_PINK,
            :font=>Graphics.FONT_LARGE,
            :locX =>WatchUi.LAYOUT_HALIGN_CENTER,
            :locY=>WatchUi.LAYOUT_VALIGN_CENTER

and call with:

myText2.draw(dc);

the graphics I create with pre-defined drawables:

  myshape2= new Rez.Drawables.shape2();

and call with:

myshape2.draw(dc);

Thanks! (may be also small example would be helpful)

  • Generally, when onUpdate() is called you want to update the entire screen, as parts may have been overlayed on the real device.  And on some devices, the screen is cleared before the call to onUpdate()

    Also, when you do something like   View.onUpdate(dc);, that clears the screen,