babbu cathy wrote:

> How to find whether backlight is OFF or ON, on a
> Palm(treo) device? Is there any Palm or Handspring API
> is available to find device backlight state?


Not sure about a Treo, but on older devices, I use:

Boolean HwrBacklight( Boolean set, Boolean newState ) SYS_TRAP( 
sysTrapHwrBacklightV33 );

Boolean isOn = HwrBacklight( false, false );

and

EvtEnqueueKey( vchrBacklight, evtNulKeycode, commandKeyMask );

to turn it on

I first use:

if ( ( FtrGet( sysFtrCreator,sysFtrNumHwrMiscFlags, &feature ) == errNone ) &&
         ( feature & hwrMiscFlagHasBacklight ) )

to determine if there is a backlight at all.


Luc Le Blanc
-- 
For information on using the ACCESS Developer Forums, or to unsubscribe, please 
see http://www.access-company.com/developers/forums/

Reply via email to