Thanks for the prototype. Both HwrDisplayAttributes and hwrDispBackLight (it is 18) seem to be unaccountably missing from the header files I have.
But POSER doesn't complain about the call (HwrBackLight triggers Proscribed function call). Does that make HwrDisplayAttributes an undocumented function supported by OSv5? :) Joe wrote: > > --- Alex Robinson wrote: > > Jim, > > I seem to have lost my notes on this: what's the modern > > replacement for HwrBacklight(Boolean set, Boolean newState)? > > I happen to have saved that info. On Wed 8/15/2001 @ 10:27 AM, Jim > Schram said: > > Toggling the backlight is best done by posting a vchrBacklight key > event, like this: > > EvtEnqueueKey(vchrBacklight, 0, commandKeyMask); > > But of course that doesn't help you if you want to explicitly turn it > on or off. In that case... you need to use one of the > undocumented/private HAL APIs. > > On Palm OS 3.5 and earlier, you can use: > > Boolean HwrBacklight(Boolean set, Boolean newState); > > On Palm OS 3.5 and later, you should use: > > Err HwrDisplayAttributes(Boolean set, HwrDisplayAttrType attr, void* > dataP); > > passing hwrDispBacklight enum (I think the value is 18) for attr, > and a pointer to a Boolean containing the backlight state for dataP > (false=off, true=on). -- For information on using the Palm Developer Forums, or to unsubscribe, please see http://www.palmos.com/dev/tech/support/forums/
