Hello Luc,
long time no hear, my old friend!

The API is a system only one called SysLCDBrightness. PLEASE in the name of
god try out the values for the UInt8 - 0 means off, 1 means full and then
its 2 to 255 for higher brightnesses!

I have tested this on all kinds of HPC ranging from the humble IIIc to the
cutting edge Centros. Here is some sample code:


                //Brightness module
                if(local.modifyscreen)
                {
                err = FtrGet(sysFtrCreator, sysFtrNumHwrMiscFlags, &flags); 
                if (!err) 
                { 
                        if ((flags & hwrMiscFlagHasSWContrast))
                        {
                                if(local.wirelessscreen.snoopcontrast)
 
local.wirelessscreen.contrast=SysLCDContrast(true,1);
 
SysLCDContrast(true,local.dockedscreen.contrast);
                        }
                } 
                err = FtrGet(sysFtrCreator, sysFtrNumHwrMiscFlagsExt,
&flags); 
                if (!err) 
                { 
                        if ((flags & hwrMiscFlagExtHasSWBright))
                        {
                                int realbrightness;
                                if(local.wirelessscreen.snoopbrightness)
                                {
 
realbrightness=SysLCDBrightness(false,2);
                                        switch(realbrightness)
                                        {
                                                case 0:
 
local.wirelessscreen.brightness=0;
                                                        break;
                                                case 1:
 
local.wirelessscreen.brightness=254;
                                                        break;
                                                default:
                                                        realbrightness--;
 
local.wirelessscreen.brightness=realbrightness;
                                                        break;  
                                        }
                                }
                                switch(local.dockedscreen.brightness)
                                {
                                case 0:
                                        SysLCDBrightness(true,0);
                                        break;
                                case 1:
                                        SysLCDBrightness(true,2);
                                        break;
                                default:
        
realbrightness=local.dockedscreen.brightness + 1;
 
SysLCDBrightness(true,realbrightness);
                                        break;
                                }
                                
                        }
                } 
                }

All the best
Tam Hanna


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

Reply via email to