Link to home
Start Free TrialLog in
Avatar of libbysharf
libbysharf

asked on

screen brightness control

Hello,

How can I control the brightness of the screen with Delphi?

Best Regards
Libby

Avatar of Wim ten Brink
Wim ten Brink
Flag of Netherlands image

Doesn't that depend on the screen driver and Windows version that you have available?
ASKER CERTIFIED SOLUTION
Avatar of delphized
delphized

Link to home
membership
This solution is only available to members.
To access this solution, you must be a member of Experts Exchange.
Start Free Trial
Avatar of libbysharf
libbysharf

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,Brightness,Brightness);
  //and the same for all your components