Solved

screen brightness control

Posted on 2003-12-09
6
794 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
[X]
Welcome to Experts Exchange

Add your voice to the tech community where 5M+ people just like you are talking about what matters.

  • Help others & share knowledge
  • Earn cash & points
  • Learn & ask questions
  • 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

Announcing the Most Valuable Experts of 2016

MVEs are more concerned with the satisfaction of those they help than with the considerable points they can earn. They are the types of people you feel privileged to call colleagues. Join us in honoring this amazing group of Experts.

Question has a verified solution.

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

Suggested Solutions

Title # Comments Views Activity
Delphi Spellcheck in Webbrowser 1 76
Run video youtube webbrowse 10 86
FMX and jaudiotracker playing memory stream 29 108
Automatic field translation delphi 10.2 6 45
Creating an auto free TStringList The TStringList is a basic and frequently used object in Delphi. On many occasions, you may want to create a temporary list, process some items in the list and be done with the list. In such cases, you have to…
Introduction I have seen many questions in this Delphi topic area where queries in threads are needed or suggested. I know bumped into a similar need. This article will address some of the concepts when dealing with a multithreaded delphi database…
Nobody understands Phishing better than an anti-spam company. That’s why we are providing Phishing Awareness Training to our customers. According to a report by Verizon, only 3% of targeted users report malicious emails to management. With compan…

732 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