libbysharf
asked on
screen brightness control
Hello,
How can I control the brightness of the screen with Delphi?
Best Regards
Libby
How can I control the brightness of the screen with Delphi?
Best Regards
Libby
Doesn't that depend on the screen driver and Windows version that you have available?
ASKER CERTIFIED SOLUTION
membership
This solution is only available to members.
To access this solution, you must be a member of Experts Exchange.
ASKER
I have an application written in Delphi, and I want to add a dimmer bar, so that the brightness of all the forms and components on them could be changed.
mmh!
you could change at runtime the color property of your form and components, and
use RGB( ) function to dimmer the brightness, but not every control support the color property, so you have to choose the right components to use.
var
brightness:Integer;
begin
brightness:=(whatyouwant in 0..255)
form.color:=rgb(Brightness ,Brightnes s,Brightne ss);
//and the same for all your components
you could change at runtime the color property of your form and components, and
use RGB( ) function to dimmer the brightness, but not every control support the color property, so you have to choose the right components to use.
var
brightness:Integer;
begin
brightness:=(whatyouwant in 0..255)
form.color:=rgb(Brightness
//and the same for all your components