Solved

screen brightness control

Posted on 2003-12-09
6
787 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
Comment Utility
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
Comment Utility
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
Comment Utility
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
Comment Utility
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

What Should I Do With This Threat Intelligence?

Are you wondering if you actually need threat intelligence? The answer is yes. We explain the basics for creating useful threat intelligence.

Join & Write a Comment

Objective: - This article will help user in how to convert their numeric value become words. How to use 1. You can copy this code in your Unit as function 2. than you can perform your function by type this code The Code   (CODE) The Im…
Introduction The parallel port is a very commonly known port, it was widely used to connect a printer to the PC, if you look at the back of your computer, for those who don't have newer computers, there will be a port with 25 pins and a small print…
Access reports are powerful and flexible. Learn how to create a query and then a grouped report using the wizard. Modify the report design after the wizard is done to make it look better. There will be another video to explain how to put the final p…
Here's a very brief overview of the methods PRTG Network Monitor (https://www.paessler.com/prtg) offers for monitoring bandwidth, to help you decide which methods you´d like to investigate in more detail.  The methods are covered in more detail in o…

772 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

Need Help in Real-Time?

Connect with top rated Experts

8 Experts available now in Live!

Get 1:1 Help Now