Solved

screen brightness control

Posted on 2003-12-09
6
792 Views
Last Modified: 2010-04-05
Hello,

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

Best Regards
Libby

0
Comment
Question by:libbysharf
  • 2
6 Comments
 
LVL 17

Expert Comment

by:Wim ten Brink
ID: 9905325
Doesn't that depend on the screen driver and Windows version that you have available?
0
 
LVL 5

Accepted Solution

by:
delphized earned 100 total points
ID: 9907201
Normally is a hardware question...
in the games where you change the brightness it  is changed in the image shown, not in the hardware settings. So you could change your program's colours to make it appear brighter or darker.
The same is valid for the brightness setting of some video drivers (it is only apparent)
0
 

Author Comment

by:libbysharf
ID: 9910515
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.
0
 
LVL 5

Expert Comment

by:delphized
ID: 9911358
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
0

Featured Post

Industry Leaders: We Want Your Opinion!

We value your feedback.

Take our survey and automatically be enter to win anyone of the following:
Yeti Cooler, Amazon eGift Card, and Movie eGift Card!

Question has a verified solution.

If you are experiencing a similar issue, please ask a related question

This article explains how to create forms/units independent of other forms/units object names in a delphi project. Have you ever created a form for user input in a Delphi project and then had the need to have that same form in a other Delphi proj…
Hello everybody This Article will show you how to validate number with TEdit control, What's the TEdit control? TEdit is a standard Windows edit control on a form, it allows to user to write, read and copy/paste single line of text. Usua…
Although Jacob Bernoulli (1654-1705) has been credited as the creator of "Binomial Distribution Table", Gottfried Leibniz (1646-1716) did his dissertation on the subject in 1666; Leibniz you may recall is the co-inventor of "Calculus" and beat Isaac…

680 members asked questions and received personalized solutions in the past 7 days.

Join the community of 500,000 technology professionals and ask your questions.

Join & Ask a Question