I suppose checking the trap address will work, since OS5 still
supports SysGetTrapAddress. What I don't know is if the trap will be
determinant going forward.

I don't normally use the trap address method. I get the device ids,
features and flags near startup, check for everything I'll need at one
time and stash the results for later. This is the model I used pre-OS5
when the same info was available in system globals. In OS5, the info
is available in features.

On Thu, Sep 25, 2008 at 2:55 AM, Luc Le Blanc <[EMAIL PROTECTED]> wrote:
> Jeff Loucks wrote:
>
>> Tam's sample code has the method. Here it is in one statement;
>
>> UInt32 temp;
>> Boolean fHasSWBrightnessControl =
>>       FtrGet(sysFtrCreator,sysFtrNumHwrMiscFlags,&temp) == errNone
>> &&
>>       (temp & hwrMiscFlagHasBacklight) != 0 &&
>>       FtrGet(sysFtrCreator,sysFtrNumHwrMiscFlagsExt,&temp) ==
>> errNone &&
>>       (temp & hwrMiscFlagExtHasSWBright) != 0;
>
>
> I assume the first part of the test determines whether there's a backlight. I 
> had this instead, how does it compare?
>
> if ( SysGetTrapAddress( sysTrapHwrBacklightV33 ) != SysGetTrapAddress( 
> sysTrapSysUnimplemented ) )
>
>
> Luc Le Blanc
>
> --
> For information on using the ACCESS Developer Forums, or to unsubscribe, 
> please see http://www.access-company.com/developers/forums/
>



-- 
[Jeff Loucks, Gig Harbor, WA, USA]

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

Reply via email to