[Last Call] Learn how to a build a cloud-first strategyRegister Now

x
?
Solved

screen brightness control

Posted on 2003-12-09
6
Medium Priority
?
822 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
4 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 400 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

Concerto Cloud for Software Providers & ISVs

Can Concerto Cloud Services help you focus on evolving your application offerings, while delivering the best cloud experience to your customers? From DevOps to revenue models and customer support, the answer is yes!

Learn how Concerto can help you.

Question has a verified solution.

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

A lot of questions regard threads in Delphi.   One of the more specific questions is how to show progress of the thread.   Updating a progressbar from inside a thread is a mistake. A solution to this would be to send a synchronized message to the…
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…
Exchange organizations may use the Journaling Agent of the Transport Service to archive messages going through Exchange. However, if the Transport Service is integrated with some email content management application (such as an anti-spam), the admin…
When cloud platforms entered the scene, users and companies jumped on board to take advantage of the many benefits, like the ability to work and connect with company information from various locations. What many didn't foresee was the increased risk…
Suggested Courses

830 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