At 11:53 AM -0500 3/21/01, DIAMOND JEFF wrote:
>My application inverts its screen when the back light is on to keep the
>image looking the same in either viewing mode.
>
>The only catch is I haven't yet foudn a way to determine the absolute
>state of the backlight, so the user has to manually set this every time
>he thows off the toggle count.
>
>Is there any way (documented or undocumented) to tell if the back light
>is on?
The function
Boolean HwrBacklight(Boolean set, Boolean newState)
should do the trick under Palm OS 2.0 and later. Officially it has been deprecated in
Palm OS 3.5 but the trap is still implemented for compatibility. Its replacement
function in Palm OS 3.5 and later is
Err HwrDisplayAttributes(Boolean set, HwrDisplayAttrType attr, void* dataP)
passing the hwrDispBacklight enum for the attr parameter.
Regards,
Jim Schram
Palm Incorporated
Partner Engineering
--
For information on using the Palm Developer Forums, or to unsubscribe, please see
http://www.palmos.com/dev/tech/support/forums/