Basic4ppc - Windows Mobile Development  

Go Back   Basic4ppc - Windows Mobile Development > Main Category > Questions & Help Needed
Home Register FAQ Members List Search Today's Posts Mark Forums Read

Questions & Help Needed Post any question regarding Basic4ppc.


Font Problem ??


Reply
 
LinkBack Thread Tools Display Modes
  #1 (permalink)  
Old 08-05-2008, 01:40 PM
Junior Member
 
Join Date: Jul 2008
Posts: 28
Default Font Problem ??

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?

Cheers
Nick
Attached Images
File Type: jpg dtime.JPG (19.5 KB, 33 views)
Attached Files
File Type: sbp DtimePPC.sbp (3.6 KB, 4 views)
Reply With Quote
  #2 (permalink)  
Old 08-05-2008, 07:24 PM
Erel's Avatar
Administrator
 
Join Date: Apr 2007
Posts: 3,186
Default

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.
Reply With Quote
  #3 (permalink)  
Old 08-06-2008, 12:07 AM
Junior Member
 
Join Date: Jul 2008
Posts: 28
Default

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.
Reply With Quote
  #4 (permalink)  
Old 08-06-2008, 10:10 AM
Erel's Avatar
Administrator
 
Join Date: Apr 2007
Posts: 3,186
Default

This thread should help you: GetTimeZone
Reply With Quote
  #5 (permalink)  
Old 08-06-2008, 01:15 PM
Junior Member
 
Join Date: Jul 2008
Posts: 28
Default

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)
Reply With Quote
  #6 (permalink)  
Old 08-06-2008, 04:29 PM
Erel's Avatar
Administrator
 
Join Date: Apr 2007
Posts: 3,186
Default

This is the case on all devices.
You can use the lower level function GetTickCount to get a more precise value: Useful Library
Reply With Quote
  #7 (permalink)  
Old 08-08-2008, 12:00 PM
Junior Member
 
Join Date: Jul 2008
Posts: 28
Default

Thanks

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)
Reply With Quote
Reply



Currently Active Users Viewing This Thread: 1 (0 members and 1 guests)
 
Thread Tools
Display Modes

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

vB code is On
Smilies are On
[IMG] code is On
HTML code is Off
Trackbacks are On
Pingbacks are On
Refbacks are On

Similar Threads
Thread Thread Starter Forum Replies Last Post
different Font at .drawstring MM2forever Questions & Help Needed 3 06-30-2008 06:45 PM
can i change font ? gjoisa Questions & Help Needed 1 03-29-2008 10:58 AM
Font Change Stanl3yCZ Questions & Help Needed 2 01-27-2008 07:22 PM
Font change klaus Questions & Help Needed 6 12-30-2007 07:00 PM
Size of font on PDA BjornF Basic4ppc Wishlist 3 05-10-2007 04:37 PM


All times are GMT. The time now is 01:48 PM.


Powered by vBulletin® Version 3.6.12
Copyright ©2000 - 2008, Jelsoft Enterprises Ltd.
Content Relevant URLs by vBSEO 3.1.0