Re: Handle incoming calls and other Palm events on a hi-res program?

2005-11-29 Thread Ben Combee

At 01:45 PM 11/29/2005, you wrote:

Hello there,

In my program, I call
WinSetCoordinateSystem(kCoordinatesDouble);
and display graphic in high resolution (320x320 for Treo 650). When the 
program is running, if there is an incoming phone call, the screen is 
messed up, part of a message text box is showed in the top left quarter of 
the screen. What do I need to do to handle switching betweeen hi-res and 
low-res?


Other than incoming call, which event do I have to handle the switching 
(between hi-res and low-res)?


You should only switch to high resolution mode when you're actually doing 
your drawing, and you should switch back to standard resolution at all 
other times.  At the least, make sure you're in standard before you exit 
from your event handler.



-- Ben Combee, Senior Software Engineer, Palm, Inc.
   Combee on Palm OS weblog: http://palmos.combee.net/
   Developer Forum Archives:   http://news.palmos.com/read/all_forums/


--
For information on using the PalmSource Developer Forums, or to unsubscribe, 
please see http://www.palmos.com/dev/support/forums/


Re: Handle incoming calls and other Palm events on a hi-res program?

2005-11-29 Thread ThuNguyet Nguyen
Hi Ben,

 You should only switch to high resolution mode when you're 
 actually doing your drawing, and you should switch back to 
 standard resolution at all other times. At the least, make
 sure you're in standard before you exit from your event handler.
My program is similar to the media player program, it draws hi-res graphic all 
the time, so I only want to switch back to standard resolution when there is a 
Palm event (incoming call, SMS message, alarm, etc...). I just can not catch 
the Palm event :(

tnn
-- 
For information on using the PalmSource Developer Forums, or to unsubscribe, 
please see http://www.palmos.com/dev/support/forums/