Programming for Palm OS/C

From Wikibooks, open books for an open world
Jump to navigation Jump to search

generic useful bits[edit | edit source]

To sleep for period milliseconds (typically only to 10ms precision):

 SysTaskDelay( SysTicksPerSecond() * period / 1000);

To find the resolution of the screen:

 Coord  screenWidth, screenHeight;
 WinGetDisplayExtent( &screenWidth, &screenHeight);

examples[edit | edit source]