I wrote a programe to simulate the fading effect when power off like
that on Nokia phone.( graudually dim ).I adjust the contrast to simulate
this ( adjust from current value to  255 ).


my thought is as bellow:
     The  programe will store the current contrast setting to prefence
database in handler of sysNotifySleepRequestEvent. And after deffering the
sleep , it will adjust the contrast from cur. to 255, and then send resume
sleep vchr to resume the sleep. When it power on,  the programe will
set back the contrast as stored in preference.

    But I install my programe on my Treo600, the sleep process is done as I
expected.But when I power on the Treo, The screen become much brighter than
before.
    I have examined the contrast and brightness setting, but they are both
right.( the brightness value is untouched, the contrast value is what I
stored in preference) . And I also found, in system preference, using the
"display" pannel, the contrast slider is where it used be,and it is
difficult to adjust the contrast slider to get the same effect like it
before sleep.
   And if I disable my programe, press the hardbutton4 to let the device
sleep and wake it  up again, the screen will restore as before.

   Can someone explain this thing ?  Thank in advance, any reply would be
appreciated.

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

Reply via email to