• Status: Solved
  • Priority: Medium
  • Security: Public
  • Views: 231
  • Last Modified:

Dispaly

How to change display Settings, Colors, and Screen area???
0
ILPowerSoft
Asked:
ILPowerSoft
1 Solution
 
BoRiSCommented:
ILPowerSoft

You need to use the GetSystemMetrics, SystemParametersInfo API to handle all of these...

to retrieve all the info, use

GetSystemMetrics(CM_CXFULLSCREEN or CM_CYFULLSCREEN);

or

SystemParametersInfo(SPI_GETWORKAREA, 0, YourRect, SPIF_UPDATEINIFILE);

to set the work area etc...

SystemParametersInfo(SPI_SETWORKAREA, 0, YourRect, SPIF_UPDATEINIFILE or SPIF_SENDCHANGE);

Check the win32.hlp file for more info on this

Later
BoRiS
0
 
MadshiCommented:
Perhaps you should look at winAPI EnumDisplaySettings and ChangeDisplaySettings, too.

Regards, Madshi.
0
 
ILPowerSoftAuthor Commented:
plaes giv my an a exmp for the answer
0
Technology Partners: 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!

 
ILPowerSoftAuthor Commented:
So !!!!!!
0
 
ILPowerSoftAuthor Commented:
How can I display my Form in 256 colors when the system works
in 16bit or 24bit or more?  
0
 
ILPowerSoftAuthor Commented:
How can I display my Form in 256 colors when the system works
in 16bit or 24bit or more?  
0
 
intheCommented:
http://www.inprise.com/devsupport/delphi/qanda/749.html

gives full code for change display settings.

and :

http://www.experts-exchange.com/jsp/qShow.jsp?ta=delphi&qid=10129253 
about halway down this question you will find some code i did for someone else to change colors of windows settings.
be carefull with it as you may mess up your colors because some of the names are decieving.
Regards Barry

0
 
intheCommented:
hi again
i have found better code for changing the display settings
than what is on the borland site
leave your email address so i can send to you it comes with example.
0
 
ILPowerSoftAuthor Commented:
ian@gezernet.co.il
0

Featured Post

New feature and membership benefit!

New feature! Upgrade and increase expert visibility of your issues with Priority Questions.

Tackle projects and never again get stuck behind a technical roadblock.
Join Now