Important: The information in this document is obsolete and should not be used for new development.
DimmingControl
You can use theDimmingControl
function to turn the automatic dimming feature on and off.
void DimmingControl(Boolean enableDimming);
enableDimming
- A Boolean that specifies whether to enable the automatic dimming feature. Set this parameter to
true
to enable automatic dimming.DESCRIPTION
TheDimmingControl
function enables or disables the automatic dimming feature that causes the computer to dim the screen after a preset period of time. WhenenableDimming
is set totrue
, the automatic dimming feature is enabled (this is the normal state). WhenenableDimming
is set tofalse
, the computer will not dim the screen.SPECIAL CONSIDERATIONS
CallingDimmingControl
withenableDimming
set tofalse
multiple times increments the auto dimming disable level so that it requires the same number of calls toDimmingControl
withenableDimming
set totrue
to reenable the auto dimming feature. If more than one piece of software makes this call, auto dimming may not be reenabled when you think it should be.ASSEMBLY-LANGUAGE INFORMATION
The trap is_PowerMgrDispatch
($A09E). The selector value forDimmingControl
is 31 ($1F) in the low word of register D0. The Boolean value is passed in the high word of register D0.SEE ALSO
You can use thePMFeatures
function (page 6-41) to determine whether the computer supports automatic dimming.