VA Single Field DataApp

Hi -

in the simulator, I can't seem to be able to get my code to work on the VA.
The VA by default only has the 3 horizontal layout is it?
I looked at the resolution / size and it seems like it's the same as the 920xt (205x148)
so I coded my datafield to follow that particular screen size, it seems to work for the 920xt but not for the VA.

I'm not exactly sure what I should do to be able to simulate it tho.

Anyways, I think I've done what I can for now and will be uploading my new DataField App for both the F3 and 920xt at the very least.

if (width == 205 && height == 148)
{
dc.setColor(Gfx.COLOR_RED, Gfx.COLOR_TRANSPARENT);
dc.drawLine(0, 74, 205, 74);
dc.setColor(Gfx.COLOR_BLACK, Gfx.COLOR_TRANSPARENT);

// These are label for the Top
dc.drawText( 35, 5, Gfx.FONT_XTINY, "TOD",Gfx.TEXT_JUSTIFY_CENTER);
dc.drawText(110, 5, Gfx.FONT_XTINY, "ELAPSED",Gfx.TEXT_JUSTIFY_CENTER);
dc.drawText(175, 5, Gfx.FONT_XTINY, CadLabel,Gfx.TEXT_JUSTIFY_CENTER);

  • Former Member
    Former Member over 9 years ago
    When onUpdate is called for your data field, the width and height attributes of the device context will be the width and height of the data field that is actively running the app. This means that on the VivoActive, you will see device contexts with w/h of 205x57, 205x43, or 205x44. Thve VivoActive doesn't ever draw full screen data fields so you will not see a context of 205x148 unless you are in one of the other app types.

    You will also see a different context size on FR920XT if you add the field to a smaller configuration.
  • Ah.. I see.. no wonder.

    but on the F3, even with the multiple field layouts, I thought that my code, for the 3 field horizontal is also based on 0,0 on the upper left corner.
    Anyways - I will give it a go.

    Thanks for the update and help.