Font Problem ??

Discussion in 'Questions (Windows Mobile)' started by nm7s9, Aug 5, 2008.

  1. nm7s9

    nm7s9 Member Licensed User

    In the attached JPG (from the program running on the desktop) you can see that I have moved the clockface numbers a few pixels to the right.

    This is so that it looks correct when running on the PPC ( the numbers go back a few pixels to the left on the PPC). Is this a font display difference between PC and PPC?

    Also, is there a way to get date/time returned as UTC rather than local time?


    Attached Files:

  2. Erel

    Erel Administrator Staff Member Licensed User

    There could be some small differences between the drawn fonts on the desktop and device.
    BTW, did you see the Clock example?
    You can find it under C:\Program Files\Anywhere Software\Basic4ppc Desktop\Samples.
    It uses the forelayer to draw the moving parts instead of building the clock each tick.
  3. nm7s9

    nm7s9 Member Licensed User

    Thanks Erel,

    I did run the example clock but haven't yet gone through the code carefully.

    I'll start using the forelayer right away. (I'm always glad of advice of how to improve my code).

    Once I get UTC worked out, I'm also going to do an analogue sidereal clock and then, for something spectacularly useless, a decimal sidereal clock.
  4. Erel

    Erel Administrator Staff Member Licensed User

  5. nm7s9

    nm7s9 Member Licensed User

    Thanks Erel

    GetTimeZone works well. ( as does using the forelayer)

    While timing wiping out the hands of the clock as opposed to just setting the whole forelayer clockface back to transparent, I noticed something very odd.

    On the PPC (I have Mio A701 and Mio A702) the last 7 digits of ticks are always zero. This means that the PPC is only retreiving time to an accuracy of one second. This explains why my decimal clock has regular hiccups on the PPC but runs "smooth as..." on the desktop.

    Is this the case on other PPcs or is it just Mio (A701 is WM5, A702 is WM6)
  6. Erel

    Erel Administrator Staff Member Licensed User

  7. nm7s9

    nm7s9 Member Licensed User


    I think that "Usefull Library" should be renamed "very Usefull Library".

    On the Desktop the GetTickCount updates at the same frequency as does "Now", E,G 15 to 16 ms on one PC and 10 ms on another.

    On the device GetTickCount undates every ms except for the first which costs 23ms on the A701 and 46ms on the a702. ( I throw away the first 2 calls just to be safe). This means that we can get a more sensitive tick count (1ms ) on the device than on the desktop (10 or 15.6ms)
  1. This site uses cookies to help personalise content, tailor your experience and to keep you logged in if you register.
    By continuing to use this site, you are consenting to our use of cookies.
    Dismiss Notice